Skip to content
Snippets Groups Projects
Select Git revision
  • a57515c46c9b6c0a728c4cf2c95d589c1173a416
  • main default protected
  • fix/missing-api-documentation
  • feature/python_example_folder_update
  • beta_release protected
  • fix/revert-gitlab-config
  • fix/citationEcologicalAssessment
  • documentation/styleupdate
  • feature/lightMode
  • documentation/create_mission_xml
  • 28-empennage-design-update-documentation-according-to-workshop
  • documentation/fix-dot-equations
  • documentation/propulsion-design-module
  • documentation/gitlab-workflow
  • documentation/cost_estimation_update
  • documentation/mkdocs_python_update
  • documentation/tank_design_update
  • documentation/landing_gear_design_update
  • documentation/fuselage_design_update
  • documentation/global-header-file-setup
  • feature/mkdoxy
  • 0.5.0
22 results

unicado.gitlab.io

  • Open with
  • Download source code
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • user avatar
    CI Bot authored
    a57515c4
    History

    Unicado Pages

    This repository contains the static website of UNICADO which is hosted by GitLab pages. We are using mkdocs as the static site generator to generate the website from markdown files.

    Preview

    It is assumed you have a working 🐍 Python installation in the following!

    You can preview the website after cloning it. First you need to install mkdocs and the used theme by:

    pip install mkdocs mkdocs-material mkdocs-glightbox

    Then you can change the directory to the repository and run

    mkdocs serve

    This will start a local webserver which you can access with your webbrowser and preview the website.

    with pipenv

    You can also start the server inside a virtual environment using pipenv:

    pipenv run mkdocs serve

    Further Documentation

    For features of the site generator and its theme please refer to their excellent documentation:

    Page Template

    The pages are written in plain markdown. The site generator has the option the extract some meta data from the content. A template might look like this:

    ---
    title: Displayed Title of Page
    summary: Summary of the page content.
    authors:
        - Author 1
        - Author 2
    date: yyyy-mm-dd
    ---
    # MyPage
    
    <Content goes here>

    Tools

    The documentation page uses some custom tools to enable a seamless continuous documentation:

    document_aircraft_xml.py

    Script

    This script is used to document the aircraft exchange file. It parses the XML file and creates the documentation for each node using its description.

    The usage is explained in the output when calling the script with the --help option:

    usage: document_aircraft_xml.py [-h] [--title title] [--level level] filename
    
    Converts an aircraft XML file to a markdown file. The output is streamed to stdout and can be piped to a file.
    
    positional arguments:
      filename       The XML file to convert.
    
    options:
      -h, --help     show this help message and exit
      --title title  The title of the output page. This also sets the root node which is used to create the document.
      --level level  The maximum level nodes to be used as headers.