Git Product home page Git Product logo

dsp-docs's Introduction

DaSCH Service Platform Documentation

This repository is the source from which the DSP documentation on docs.dasch.swiss is generated. It includes three main components:

If you want to contribute, please read the following information carefully.

File structure

DSP-API, DSP-APP, and DSP-TOOLS have their own documentation in their repositories itself. They are integrated into this documentation with git submodule and the mkdocs-monorepo-plugin.

Those three documentations are stored as git submodules in the /dsp folder. Please do not change anything there. They have to be updated in their own repositories. To grab the latest version of them run make update-submodules.

In addition to those embedded contents, there are contents that live in this repository. They are stored in the /docs folder:

  • main landing page
  • general DSP developers guide, with basics about DSP and how to contribute to the DSP software

Images like screenshots and so on have to be stored in /docs/assets/images.

How to build the documentation from source

In order to build the documentation from source, you need to install the following prerequisites:

Xcode command line tools

Some Terminal commands used for the instructions below are not shipped with macOS by default. They must be installed separately. Install the Xcode command line tools (not to be confused with the entire Xcode application) as follows:

xcode-select --install

You will be asked in a prompt if you want to install the command line developer tools. Click "Install".

Homebrew

Homebrew is a package manager that allows us to install other software. Install it with

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Python

The documentation is built with MkDocs, which requires Python. You can check if you have it already installed with:

python --version

If this command doesn't output a version number, then run

brew install python

Graphviz

Install Graphviz (Graph visualization software) to work with .dot files:

brew install graphviz

Clone repository and initialize submodules

Clone this repository from GitHub and initialize the submodules:

git clone https://github.com/dasch-swiss/dsp-docs.git
cd dsp-docs
make init-submodules

Update the submodules

If you have been away for a while, you might want to update the submodules to get the latest version of DSP-API, DSP-APP and DSP-TOOLS documentation. Make sure you are at the root of the dsp-docs repository, then run:

make update-submodules

Install Python packages in a virtual environment

Make sure you are at the root of the dsp-docs repository, then create a new virtual environment:

python3 -m venv .venv
source .venv/bin/activate

The virtual environment is now active, as can be seen from the (.venv) at the beginning of the command line. Install the required python packages by running

make install-requirements

Serving the documentation locally

MkDocs comes with a built-in dev-server that lets you preview your documentation as you work on it.

Make sure that

  • you're at the root of the dsp-docs repo
  • the virtual environment is active ((.venv) at the beginning of the command line)
  • the submodules are up-to-date (run make update-submodules)

Then start the server with:

make serve

Open up http://127.0.0.1:8000/ in your browser, and you'll see the documentation landing page.

Building the documentation

Make sure that

  • you're at the root of the dsp-docs repo
  • the virtual environment is active ((.venv) at the beginning of the command line)
  • the submodules are up-to-date (run make update-submodules)

Then build the docs with:

make build

Deploying GitHub page

Deploying the documentation to docs.dasch.swiss has to be done manually.

Make sure that

  • the release.mk file is up-to-date with the corresponding versions
  • that you are in the main branch
  • that you're at the root of the dsp-docs repo
  • that the virtual environment is active ((.venv) at the beginning of the command line)

Then run the following command:

make deploy

This updates the submodules and pushes the documentation to the gh-pages branch.

Help for the make commands

To get help for the make commands, run:

make help

dsp-docs's People

Contributors

kilchenmann avatar jnussbaum avatar mpro7 avatar subotic avatar mdelez avatar balduinlandolt avatar flavens avatar nora-olivia-ammann avatar gautschr avatar seakayone avatar dependabot[bot] 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.