Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USP Secure Entry Server

Secure Entry Server provides secure access to web-based applications and resources, while simplifying the process of configuration and deployment.

This repository contains the scripts required to build the USP SES website:

https://docs.united-security-providers.ch/usp-ses/

Requirements

  • mkdocs to generate the website and deploy it to GitHub pages

mkdocs notes

Install / upgrade pip

python get-pip.py
pip install --upgrade pip

Install mkdocs

# This will create a local directory called ".venv"
python3 -m venv .venv
source .venv/bin/activate
pip install pagefind[extended] mkdocs pymdown-extensions mkdocs-material mkdocs-redirects mkdocs-swagger-ui-tag mike

Now you should be able to run the mkdocs command and see something similiar to:

mkdocs --version
mkdocs, version 1.6.1 from /home/<myuser>/usp-core-waap/.venv/lib/python3.12/site-packages/mkdocs (Python 3.12)

To deactivate the virtual environment again, simply run:

deactivate

Generate site locally

To just generate the site locally, run:

$ ./release.sh <ses-version>

The site has then been generated within the "build" directory (Markdown source for mkdocs, not yet HTML).

Test site locally

Generate the site locally as described above, then run mkdocs to serve it locally:

$ ./release.sh <ses-version>
$ mkdocs serve

This will make it available locally (URL visible in output on the shell, typically http://127.0.0.1:8000/).

Generate site and publish it via GitHub

To generate the site and deploy it to GitHub pages, run:

$ ./release.sh <ses-version> deploy --latest

The published page should then become available after a few minutes at the link on top of this page.

NOTE: When releasing the documentation for the latest version, you need to add the --latest flag to the release.sh script.

Multi version support

We use mike to support multiple versions of the documentation at the same time. The release.sh script will therefore always only add the newly published version to the gh-pages branch. Old published versions of the documentation are kept in gh-pages and are accessible until someone deletes them from the branch.

About

The Secure Entry Server documentation and release information

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages