Skip to content

APN-Pucky/easybuild-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyBuild documentation

This repository contains the sources of the EasyBuild documentation, which is hosted at https://docs.easybuild.io.

Warning

The sources of the EasyBuild documentation currently still reside at https://github.com/easybuilders/easybuild/tree/main/docs.

We are actively porting the sources from reStructuredText format to MarkDown format.

Format

The documentation sources are located in the docs subdirectory. They are written in MarkDown format, and rendered using MkDocs, more specifically with Material for MkDocs.

Useful links:

Publishing

The documentation is automatically built and published to https://docs.easybuild.io on every push to the main branch of this repository.

This is taken care of by the deploy GitHub Actions workflow.

Using mkdocs

Installing mkdocs

To install all the required mkdocs Python packages, use the provided requirements.txt file:

pip install -r requirements.txt

Building

To build the documentation, use:

mkdocs build

or use the Makefile that is provided in this repository:

make

Testing

To test whether the documentation is building correctly, and whether all (internal) links are correct, use:

mkdocs build --strict

or

make test

These commands will exit with a non-zero exit code if mkdocs produces any errors or warnings.

Previewing

To see a local preview of the rendered documentation in your browser, use

mkdocs serve

or

make preview

and click the link that is provided, for example:

INFO     -  Documentation built in 0.24 seconds
INFO     -  [17:52:07] Watching paths for changes: 'docs', 'mkdocs.yml'
INFO     -  [17:52:07] Serving on http://127.0.0.1:8000/

This preview of the rendered documentation will automatically refresh when the documentation sources are updated!

Contributing

To contribute to the EasyBuild documentation, you should make a pull request to the main branch.

For example:

git clone git@github.com:easybuilders/easybuild-docs.git
cd easybuild-docs
git remote add example_fork git@github.com:example/easybuild-docs.git
git checkout -b example_branch
git add docs/example.md
git commit -m "this is just an example"
git push example_fork example_branch
# then go to https://github.com/easybuilders/easybuild-docs and open the pull request

About

EasyBuild documentation (mkdocs)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 100.0%