Skip to content

osorgenfrey/pythonsupport-page-charlie

 
 

Repository files navigation

DTU Python support homepage

Welcome to the DTU Python support development site.

Our homepage is hosted here.

If you are a DTU student and want help with installing packages for a course at DTU, please visit pythonsupport.dtu.dk.

Building the documentation

To build the documentation in a controlled environment we recommend you to use a virtual environment. Subsequently, the required packages should be installed, and lastly the documentation can be built.

The steps can be outlined like this:

  1. Create a virtual environment (on a Linux box)

    python3 -m venv ps-page-env
    source ps-page-env/bin/activate
    
  2. Install the requirements:

    python3 -m pip install -r requirements.txt
    # currently there is a blocking dependency on some of the
    # packages listed in requirements.txt, however, since pip
    # will allow updating a package that breaks compatibility, we
    # can use this to our advantage. The documentation builds fine.
    # Only some non-used features will not work. So we should be fine.
    #    :fingers_crossed:
    python3 -m pip install -U "sphinx>=7.2.5"
    
  3. Build documentation

    make
    

    Now the documentation is build and can be found in build/html.

  4. Open the documentation:

    firefox build/html/index.html
    

    And you should be ready to see the just build documentation.

Running Locally in Podman

You can easily run the site locally (and deployed) using containers. You'll need:

  • podman (or docker)

Run the following:

podman build . --tag pythonsupport-page:dev
podman run --rm -it --cap-drop ALL --publish 3000:3000 pythonsupport-page:dev

To control things like cache headers, compression, healthcheck endpoint, and basic authentication, see the static-web-server environment variable reference: https://static-web-server.net/configuration/environment-variables/

About

Site for the documentation of the Python support's homepage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.9%
  • Dockerfile 4.5%
  • Batchfile 4.3%
  • Makefile 4.3%