Skip to content

LabVIEWCommunityTraining/cti-documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cti-documentation

This is a multilingual repository to host all of the documentation for the LabVIEW Community Training Initiative.

Building and publishing the site

The site is built and published automatically after a push to the repository is done. See the Actions tab for details.

Documentation Versioning and Branching Workflow

Versioning of the documentation relies on branches. Each version of the documentation stands in branches called vx.y.

Note
There’s no need to merge that ' vx.y` in the main branch. The build and publish action is triggered on any vx.y branch push.

Creating a New Version

  1. Create a new vx.y branch starting from the most recent branch version.

  2. Update the version: attribute of each cti-doc_xx/content/antora.yml and cti-doc_xx/home/antora.yml files according to the version name.

Tip
You can add a prerelease: attribute to suffix the version name as long as the content is not ready for an official release. The version will be accessible on the website, but it will not be displayed as the default version to the visitor.

Rendering pages on your computer

We recommend either one of these three options for people working more intensely in this repository

Use Visual Studio

  • Install the Asciidoc extension

  • On the settings, make sure to go under Asciidoc > Antora: Show Enable Antora Prompt, and check "Show a prompt to enable Antora support when an antora.yml file is detected"

    • For this prompt to work, you need to have a single antora.yml on your folder, so open at the language folder level you are working on

Use Intelli J to render locally

  • Clone the repository or download a zip of the source files

  • Install Community Edition for Intelli J https://www.jetbrains.com/idea/download/#community-edition (We can use it for this Open Source project)

  • When you open the CTI-Documentation folder, as soon as you open the first Asciidoc file, it will prompt you to install the Asciidoc plug in

Building the site locally

Execute the following steps:

  1. Building the website UI:

    • Open a terminal in the user-interface folder.

    • Execute the following command npx gulp bundle

  2. Build the website.

    • Open a Terminal in the antora folder.

    • execute the following command npx antora --ui-bundle-url ../user-interface/build/ui-bundle.zip --url <absolute path to your local repository> --to-dir build/sites/en antora-playbook-en.yml.

Once built, the website is available in the /antora/build/sites/en folder.

Important

To build the website locally, make sure to follow the prerequisites listed below:

Contribute to the documentation

Please follow the instructions available here to contribute to the documentation.

About

This is a multilingual repository to host all of the documentation for the LabVIEW Community Training Initiative.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8