-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Contribute user manual, installation guide and developer guide
Signed-off-by: Mélanie Bats <melanie.bats@obeo.fr>
- Loading branch information
1 parent
934d117
commit e4ee3ac
Showing
631 changed files
with
24,317 additions
and
5 deletions.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Deploy static documentation on Pages | ||
|
||
on: | ||
push: | ||
paths: | ||
- "doc/**" | ||
branches: | ||
- "**" | ||
tags: | ||
- "*" | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Run Doc generation script | ||
run: doc/generate.bash | ||
|
||
- name: Fix permissions | ||
run: sudo chmod -c -R +rX 'doc/docs-site/build' | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'doc/docs-site/build/site/' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
StylesPath = styles | ||
|
||
MinAlertLevel = warning | ||
|
||
Packages = Microsoft, Google, RedHat, proselint, write-good, alex, Readability, Joblint | ||
|
||
[*.adoc] | ||
BasedOnStyles = Vale, Microsoft, Google, RedHat, proselint, write-good, alex, Readability, Joblint | ||
|
||
### Deactivate individual rules ### | ||
# Style1.Rule1 = NO | ||
Joblint.DevEnv = NO | ||
RedHat.Contractions = NO | ||
RedHat.Spelling = NO | ||
Vale.Spelling = NO | ||
write-good.E-Prime = NO |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM alpine:latest AS BUILD | ||
|
||
RUN apk add npm | ||
|
||
WORKDIR /usr/app | ||
|
||
COPY doc-ui /usr/app | ||
|
||
RUN npm install | ||
RUN ./node_modules/gulp/bin/gulp.js bundle | ||
|
||
FROM alpine:latest AS UI | ||
|
||
COPY --from=BUILD /usr/app/build/ui-bundle.zip /usr/app/ui-bundle.zip | ||
|
||
|
||
FROM alpine:latest | ||
|
||
RUN apk add git | ||
RUN apk add npm | ||
RUN apk add ruby ruby-dev gcc g++ make | ||
|
||
RUN mkdir /home/antora | ||
|
||
WORKDIR /home/antora | ||
|
||
COPY docs-site/package.json . | ||
COPY docs-site/package-lock.json . | ||
|
||
RUN npm install | ||
RUN gem install asciidoctor | ||
RUN gem install asciidoctor-pdf | ||
RUN gem install rouge | ||
RUN gem install kramdown-asciidoc | ||
|
||
RUN apk del ruby-dev gcc g++ make | ||
|
||
ENV PATH="$PATH:/home/antora/node_modules/@antora/cli/bin/" | ||
|
||
COPY --from=UI /usr/app/ui-bundle.zip . | ||
|
||
WORKDIR /usr/app | ||
|
||
CMD ["antora", "--clean", "--stacktrace", "--log-level=all", "/usr/app/doc/docs-site/antora-playbook.yml"] |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Documentation best practices | ||
|
||
One sentence per line. | ||
Use asciidoc attributes to reference elements of the application UI. | ||
Use asciidoc attributes to reference URL. | ||
For reference to menus, key on the keyboard... use `backticks`. | ||
Use + on new line in table to force a new line | ||
|
||
|
||
Decide what you are saying and how: Define the kind of narrator, your tone and your mood | ||
Repeat yourself: a tutorial will have a brief introduction to what you’re going to do, then the actual procedure, and finally a way for you to verify that you’ve done the thing correctly | ||
Avoid using demonstrative pronouns: Instead of saying “this” or “that,” you should add a noun to spell out exactly what you’re referring to. | ||
Simplify: strive to get to the point as quickly as possible | ||
When writing instructions, anywhere you say “You/We should X” or “You/we can X,” replace it with the imperative mood of the verb. | ||
Instead of using constructions with “of” or “for,” rewrite the sentence to put more information before the noun. | ||
Break up long sentences into multiple shorter sentences. | ||
Eliminate passive voice | ||
Don’t use adverbs | ||
Don’t assume knowledge : Spell out acronyms on first use. Add a phrase or a sentence briefly explaining a concept when you introduce it. Link out to further reading. | ||
Be aware of your tone | ||
Avoid jargon and cliches | ||
Make use of whitespace | ||
|
||
# Vale | ||
We use vale, it is a linter for prose | ||
|
||
# Antora use | ||
* Ensure that docker is launch | ||
## on linux | ||
* Launch the script SysON\doc\generate.bash in a terminal | ||
## on Windows | ||
* Lunch the script SysON\doc\local-generation.ps1 in a Windows Power shell console | ||
## Result | ||
* Generation result is available in SysON\doc\docs-site\build\site |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: syson | ||
title: SysON | ||
version: true | ||
nav: | ||
- modules/ROOT/nav.adoc | ||
|
||
asciidoc: | ||
attributes: | ||
afv: "Action Flow View" | ||
bug-url: "https://github.com/eclipse-syson/syson/issues" | ||
changelog-url: "https://github.com/eclipse-syson/syson/blob/main/CHANGELOG.adoc" | ||
details: "Details" | ||
diag-toolbar: "Contextual Toolbar" | ||
editor: "Project Editor" | ||
explorer-filter-bar: "Project Explorer Filter Bar" | ||
explorer-menu: "Element Options Menu" | ||
explorer: "Project Explorer" | ||
forum-url: "https://github.com/eclipse-syson/syson/discussions" | ||
gv: "General view" | ||
homepage: "Projects Browser" | ||
iv: "Interconnection view" | ||
kerml: "KerML" | ||
mbse: "Model-Based Systems Engineering" | ||
packages-url: "https://github.com/eclipse-syson/syson/packages/2020337/versions" | ||
product: "SysON" | ||
product-jar: "org.eclipse.syson.syson-application-YYYY.M.X.jar" | ||
projects-list: "Projects List" | ||
projects-list-menu: "Project Options Menu" | ||
related-elements: "Related Elements" | ||
representations-view: "Representations" | ||
source-code-url: "https://github.com/eclipse-syson/syson" | ||
stv: "State Transition view" | ||
sysml: "SysML" | ||
sysmlv1: "{sysml} v1" | ||
sysmlv2: "{sysml} v2" | ||
sw: "Sirius Web" | ||
validation: "Validation" | ||
website-url: "https://eclipse.dev/syson/" |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Recommended; Reserved | ||
|
||
Directory that contains the ROOT module. | ||
This special directory does not appear in the output path. | ||
Instead, it becomes the parent folder of any additional, named modules that you create in a component. | ||
The directory name must be written in all uppercase letters. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Optional; Reserved | ||
|
||
Directory where multimedia and supplemental files are organized by content type. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Optional; Reserved | ||
|
||
Directory that contains supplemental materials, such as PDFs or ZIP files, that readers can download via a link created in a page using the AsciiDoc link macro. |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Optional; Reserved | ||
|
||
Directory that contains pictures, screenshots, diagrams, and other graphics files that are displayed in a page using the AsciiDoc image macro. |
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.
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.
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.
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.
15 changes: 15 additions & 0 deletions
15
doc/content/modules/ROOT/assets/images/icon_syson_black.svg
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.
Oops, something went wrong.