Skip to content
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

init antora doc #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/doc-gen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy static documentation on Pages

on:
push:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be this workflow should only be launched if /doc folder has been modified. what do you think about?

branches: ["*"]
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
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