Skip to content

Commit

Permalink
init antora doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeEscande authored and mbats committed Nov 28, 2023
1 parent c8b39f6 commit 5554253
Show file tree
Hide file tree
Showing 181 changed files with 10,615 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,7 @@ coverage/
*.iws
*.iml
*.ipr


# Doc
doc/**/build
42 changes: 42 additions & 0 deletions doc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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

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

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", "/usr/app/doc/docs-site/antora-playbook.yml"]
11 changes: 11 additions & 0 deletions doc/content/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: syson
title: SysON
version: true
nav:
- modules/ROOT/nav.adoc

asciidoc:
attributes:
bug: "https://github.com/ObeoNetwork/SysON/issues"
product-name: "SysON"
website: "https://eclipse.dev/syson/"
6 changes: 6 additions & 0 deletions doc/content/modules/ROOT/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/ROOT/assets/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/ROOT/assets/attachments/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/ROOT/assets/images/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/ROOT/examples/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Optional; Reserved

Directory that contains non-AsciiDoc file types, such as source code or data values. These files are often inserted into listing blocks using the AsciiDoc include directive.
9 changes: 9 additions & 0 deletions doc/content/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Optional; Reserved
//
// A navigation file contains one or more AsciiDoc lists.
// Each navigation file must be declared in the component descriptor if you want it to be displayed in the component’s navigation menu.
* xref:index.adoc[]
* xref:product-legal:index.adoc[]
* xref:installation-guide:index.adoc[]
include::user-manual:partial$nav.adoc[]
4 changes: 4 additions & 0 deletions doc/content/modules/ROOT/pages/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Required; Reserved

Directory that contains all of a module’s AsciiDoc files.
These files are automatically enlisted by Antora and converted to standalone HTML pages.
13 changes: 13 additions & 0 deletions doc/content/modules/ROOT/pages/general-information.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= Overview
* Name: {product-name}
== Source code
* License: xref:product-legal:index.adoc[Obeo]

== Tracker

* Bug tracker: {bug}

== Communication

* Website: {website}
8 changes: 8 additions & 0 deletions doc/content/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
= Welcome

Welcome to the {product-name} Help Center!
From here, you can access the different documentations.

Use the menu on the left to navigate or the menu bar at the top of the page.

include::general-information.adoc[leveloffset=+1]
5 changes: 5 additions & 0 deletions doc/content/modules/ROOT/partials/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Optional; Reserved

Directory that contains AsciiDoc files that can be inserted into the files stored in pages.
These files aren’t converted to HTML by Antora directly.
Instead, they must be referenced by an include directive in a page in the pages directory.
1 change: 1 addition & 0 deletions doc/content/modules/installation-guide/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This folder contains documentation about how to install the product.
3 changes: 3 additions & 0 deletions doc/content/modules/installation-guide/assets/README
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.
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.
3 changes: 3 additions & 0 deletions doc/content/modules/installation-guide/assets/images/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/installation-guide/examples/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Optional; Reserved

Directory that contains non-AsciiDoc file types, such as source code or data values. These files are often inserted into listing blocks using the AsciiDoc include directive.
4 changes: 4 additions & 0 deletions doc/content/modules/installation-guide/pages/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Required; Reserved

Directory that contains all of a module’s AsciiDoc files.
These files are automatically enlisted by Antora and converted to standalone HTML pages.
21 changes: 21 additions & 0 deletions doc/content/modules/installation-guide/pages/environment.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
= Environment

[Environment]
|===
| |Client |Server |Comment

|Operating Systems
|Windows, Linux, macOS
|n/a
|

|Java
|Java 8
|n/a
|

|Eclipse Platform
|Photon
|n/a
|
|===
4 changes: 4 additions & 0 deletions doc/content/modules/installation-guide/pages/executables.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
= Get {product-name}

[.small .gray]#_Details how the software is distributed: update-site? standalone software?and where the executables are available, link to nightly/released update sites or any page explaining where to find it._#

9 changes: 9 additions & 0 deletions doc/content/modules/installation-guide/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
= Installation guide

include::environment.adoc[leveloffset=+1]
include::executables.adoc[leveloffset=+1]

== Installation procedure
[.small .gray]#_Details how to install the product. Details if the software comes with an installer or with a kind of assistant for the configuration or the steps to do the installation by hand._#

include::migration-process.adoc[leveloffset=+1]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= Migration process

[.small .gray]#_Details the migration process_#
5 changes: 5 additions & 0 deletions doc/content/modules/installation-guide/partials/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Optional; Reserved

Directory that contains AsciiDoc files that can be inserted into the files stored in pages.
These files aren’t converted to HTML by Antora directly.
Instead, they must be referenced by an include directive in a page in the pages directory.
2 changes: 2 additions & 0 deletions doc/content/modules/product-legal/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This folder contains documentation about legal public information.
This documentation can be shared **publicly**.
3 changes: 3 additions & 0 deletions doc/content/modules/product-legal/assets/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/product-legal/assets/attachments/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/product-legal/assets/images/README
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.
3 changes: 3 additions & 0 deletions doc/content/modules/product-legal/examples/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Optional; Reserved

Directory that contains non-AsciiDoc file types, such as source code or data values. These files are often inserted into listing blocks using the AsciiDoc include directive.
Loading

0 comments on commit 5554253

Please sign in to comment.