Coder Social home page Coder Social logo

hattom / easybuild-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from easybuilders/easybuild-docs

0.0 0.0 0.0 18.19 MB

EasyBuild documentation (mkdocs)

Home Page: https://docs.easybuild.io

License: GNU General Public License v2.0

Makefile 100.00%

easybuild-docs's Introduction

SimpleBuild documentation

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

Format

The documentation sources are located in the docs subdirectory.

They are written in MarkDown format, and rendered using MkDocs, and the Material for MkDocs theme.

Useful links:

Writing

When writing content for the SimpleBuild documentation, it is useful to get a live preview of how things will look.

Next to the letting mkdocs serve a local copy of the full SimpleBuild documentation so you can view it in your browser (see below), you can also use online services for this. This will allow you to see a live version of standard Markdown, but it will not give you a live preview of the MkDocs specific Markdown extensions.

At https://markdownlivepreview.com you can see a live preview while editing content in MarkDown format.

HackMD (https://hackmd.io) is a MarkDown note service which provides live previewing of the rendered note while you edit in MarkDown format, and collaborative editing of content.

Create a new note via https://hackmd.io/new to preview your content while editing it in MarkDown, and share the note URL with others if you would like to work together on some content.

To save work-in-progress notes and get back to them later, create a dedicated HackMD account, or sign in using your GitHub/Google/... account, via https://hackmd.io/login.

Publishing

The documentation is automatically built and published to https://docs.simplebuild.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!

SimpleBuild Framework API

The API documentation for the SimpleBuild Framework is generated automatically if the SimpleBuild framework code is found in src:

mkdir src
cd src
git clone [email protected]:simplebuilders/simplebuild-framework.git

If the SimpleBuild Framework is not found then the mkdocs build of the documentation will be faster, but this will cause a number of warnings messages to be printed.

Contributing

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

  • Fork the simplebuild-docs repository to your GitHub account, clone the repository and set up a remote for your fork:

    git clone [email protected]:simplebuilders/simplebuild-docs.git
    cd simplebuild-docs
    git add remote YOUR_GITHUB_ACCOUNT [email protected]:YOUR_GITHUB_ACCOUNT/simplebuild-docs.git
  • Create a branch for your changes, push it to your fork on the simplebuild-docs repository, and open the pull request:

    vim docs/example.md
    git checkout -b example_branch
    git add docs/example.md
    git commit -m "this is just an example"
    git push YOUR_GITHUB_ACCOUNT example_branch
    # create pull request in GitHub:
    # https://github.com/YOUR_GITHUB_ACCOUNT/simplebuild-docs/pull/new/example_branch

easybuild-docs's People

Contributors

branfosj avatar orbsmiv avatar boegel avatar deniskristak avatar petrkralcz avatar lexming avatar sebastianachilles avatar ocaisa avatar bedroge avatar verdurin avatar bartoldeman avatar hattom avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.