Coder Social home page Coder Social logo

dtt-docs's Introduction

Digital-Trust-Test-Bench

DTT Documentation

Understanding MkDocs

DTT makes use of the MkDocs engine to format and present documentation to the user.

Visit https://www.mkdocs.org/ to understand how MKDocs works and the details of the Markdown language.

Upon github commits in this repo, the DTT-Docs image gets rebuilt and re-deployed to the DEV environment and can be accessed at: http://dtt-dev.internal.idlab.org:8080

The DTT-Docs image gets deployed into the dtt-app K8s namespace, along with DTT-Frontend and DTT-Backend executable modules.

Folder Structure

Actual documentation content consists of:

  • mkdocs.yaml: This is the mkdocs configuration file. It mainly contains the navigation tree for our documentation. When adding a documentation page, the page must be added in here under the appropriate right section.

  • docs/index.md: This is the HOME page for the documentation

  • docs/userguide/: All markdown files related to the User Guide

  • docs/developerguide/: All markdown files related to the Developer Guide

  • docs/images/: All images used in the documentation

Adding a Documentation Page

  • Create a new markdown file in the appropriate /docs subfolder

  • Add a reference to it in the mkdocs.yaml nav section

  • Test you changes locally (see how below)

  • If needed, add a link to the new page in the Frontend application (see how below)

Deleting a Documentation Page

Simply delete the markdown file and remove the reference to that page in the mkdocs.yaml nav section.

Testing Changes Locally

1- Make sure you have a virtual environment setup under your DTT-Docs folder

	python3 -m venv venv
	. venv/bin/activate

2- Install dependencies

    pip install --upgrade pip
    pip install -r requirements.txt

3- Run MKDocs locally:

    mkdocs serve

4 - Check your changes in your browser at http://localhost:8080

Environment variable: DTT_DOCS_URL

If you are running DTT-Frontend locally, and want to test local documentation changes, make sure that mkdocs serve is running and set the DTT_DOCS_URL to http://localhost:8080 in your .env file.

In file .env (in DTT-Frontend)

    DTT_DOCS_URL=http://localhost:8080

dtt-docs's People

Contributors

patstlouis avatar bomichel avatar

Stargazers

Regis avatar

Watchers

Bruno Hivert avatar  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.