-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation #238
Open
g-krisztian
wants to merge
8
commits into
main
Choose a base branch
from
update_documentation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update documentation #238
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2573260
Update documentation
0370d06
Update version
0be8e20
Add version-docs
26aba45
Add source uri
71a4edc
update README.md xiana logo
08d34d2
Merge branch 'main' into update_documentation
e6fad22
Update docs
32e99f8
Language review @soulflyer
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,3 +121,5 @@ pom.xml.asc | |
.clj-kondo/* | ||
!.clj-kondo/config.edn | ||
*.iml | ||
/node_modules/ | ||
/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
<img src="resources/images/Xiana.png" width="242"> | ||
|
||
# Contribution | ||
|
||
- [Ticket system](#ticket-system) | ||
- [Coding standards](#coding-standards) | ||
- [Submitting a PR](#submitting-a-pr) | ||
- [Development dependencies](#development-dependencies) | ||
- [Setup](#setup) | ||
- [Deps](#deps) | ||
- [Releasing](#releasing) | ||
- [Generating API docs](#generating-api-docs) | ||
|
||
## Ticket system | ||
|
||
We're using GitHub [issues](https://github.com/Flexiana/framework/issues) for tracking and discussing ideas and | ||
requests. | ||
|
||
## Coding standards | ||
|
||
Please follow `clj-style` and `kondo` instructions. `Kibit` isn't a showstopper, but PRs are more welcome if they don't | ||
break `kibit`. | ||
|
||
## Submitting a PR | ||
|
||
Before you submit a PR be sure: | ||
|
||
- You've updated the documentation and the [CHANGELOG](../CHANGELOG.md) | ||
- the PR has an issue in GitHub, with a good description | ||
- you have added tests | ||
- you provided an example project for a new feature | ||
|
||
All PRs need at least two approvals and pls | ||
follow [Semantic Versioning 2.0.0](https://semver.org/#semantic-versioning-200) | ||
|
||
## Development dependencies | ||
|
||
|
@@ -31,12 +59,8 @@ | |
| nilenso/honeysql-postgres | 0.2.6 | PostGreSQL | | ||
| org.postgresql/postgresql | 42.2.2 | PostGreSQL | | ||
| crypto-password/crypto-password | 0.2.1 | Security | | ||
|
||
#### Optional | ||
|
||
| Name | Version | Provide | | ||
|---------------------|---------|---------| | ||
| clj-kondo/clj-kondo | RELEASE | Tests | | ||
| clj-kondo/clj-kondo | RELEASE | Tests | | ||
| npx | RELEASE | Documentation | | ||
|
||
## Setup | ||
|
||
|
@@ -84,4 +108,38 @@ clj -M:install | |
|
||
- Be sure all examples has the same framework version as it is in `release.edn` as dependency | ||
- Execute `./example-tests.sh` script. It will install the actual version of xiana, and go through the examples folder | ||
for `check-style` and `lein test`. | ||
for `check-style` and `lein test`. | ||
|
||
## Generating API Docs | ||
|
||
This is done with [mermaid-cli](https://github.com/mermaid-js/mermaid-cli) and a forked version | ||
of [Codox](https://github.com/Flexiana/codox). | ||
|
||
We're using mermaid-cli to render UML-diagrams in markdown files, see the `doc/conventions_template.md` for example. | ||
These files need to be added to the `/script/build-docs.sh` . For using it you need to have `npx`. | ||
|
||
Codox is forked because markdown anchors aren't converted to HTML anchors in the official release. To use it you need | ||
|
||
```shell | ||
git clone [email protected]:Flexiana/codox.git | ||
cd codox/codox | ||
lein install | ||
``` | ||
|
||
it before generating the documentation. | ||
|
||
To generate or update the current version run the script: | ||
|
||
```shell | ||
./script/build-docs.sh | ||
``` | ||
|
||
This runs the following: | ||
|
||
```shell | ||
npx -py @mermaid-js/mermaid-cli mmdc -i doc/conventions_template.md -o doc/conventions.md | ||
clj -X:codox | ||
mv docs/new docs/{{version-number}} | ||
``` | ||
|
||
It also updates the index.html file to point to the new version. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"To use it you need...."