[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Latest commit

 

History

History

docs

Documentation

Overview

This folder contains the sources of the documentation of Eclipse Steady.

The documentation is generated with a script docs.py which is a wrapper on the build system that we use (MkDocs). With this script one can also generate custom documentations, we use this script to generate our internal documentation for SAP's employees.

Setup

Preliminary steps (one-time only)

You will need a working python 3 installation (tested with 3.7) and a few packages.

python -m pip install -r requirements.txt

Editing public docs

Just use your favorite text editor and modify the files in the public/content folder.

Reviewing changes

In a console, type the following:

python docs.py public --mkserve

Then visit http://localhost:8000 to see the result of your edits.

TODO: When you save changes the browser will reload

Publishing

python docs.py public --mkghdeploy

Enterprise docs

With the docs.py one can create a custom version of the public docs with new private pages or modified pages for their enterprise employees. In order to do so, a new git repository should be created in your company. This new git repository will have to contain only enterprise-specific files which will overwrite public files.

The enterprise repository should have in his root a:

The script will merge the enterprise docs on top of the public ones. All the files with the same name/path will be overwritten and the files which end by _enterprise will be added to the docs.

Build enterprise docs

By default the docs.py script will clone the enterprise repository and merge it with the public one in order to create enterprise docs. If you want you can instead pass as a parameter a local path to the enterprise repository for easier debug of the docs.

python docs.py enterprise --url https://github.xxx/yyy/zzz.git --mkserve
# Use the command below if you dont want the script to clone the enterprise repo. Be sure to have the enterprise repo up to date
python docs.py enterprise --url https://github.xxx/yyy/zzz.git --local_repo ../../zzz --mkserve

Publish enterprise docs

The docs.py script is also able to publish enterprise docs to enterprise Github pages, from this repository.

python docs.py enterprise --url https://github.xxx/yyy/zzz.git --mkghdeploy
# We recomment to always let the script clone the enterprise private repository instead of linking to a local directory
python docs.py enterprise --url https://github.xxx/yyy/zzz.git --local_repo ../../zzz --mkghdeploy

Test

A script is provided in order to check if all the links in the generated documentation are pointing to existent resources.

The script uses the Muffet library, installation instruction are provided in the library's README.

The checklinks.sh script scrapes the generated docs and reports broken links.

# Serve the docs
python docs.py public --mkserve
# Find broken links
sh checklinks.sh