Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

radio-aktywne/webauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

webauth

authentication web ui 🌐

Build Docs


This README provides info about the development process.

For more info about webauth itself see package README or docs.

Quickstart

Using docker:

docker build -t webauth . && docker run --rm -it webauth --help

Repository structure

Everything strongly related to webauth itself (e.g. source code) should be placed in the webauth directory. Everything related to the development of webauth (e.g. Dockerfile) should be placed at the top level.

In particular the source code and documentation of webauth should be placed in webauth/src and webauth/docs respectively.

Continuous Integration

When you push changes to remote, different GitHub Actions run to ensure project consistency. There are defined workflows for:

  • deploying docs to GitHub Pages
  • testing Docker builds
  • drafting release notes
  • uploading Docker images to GitHub registry

For more info see the files in .github/workflows directory and Actions tab on GitHub.

Generally if you see a red mark next to your commit on GitHub or a failing status on badges in README it means the commit broke something (or workflows themselves are broken).

Releases

Every time you merge a pull request into main, a draft release is automatically updated, adding the pull request to changelog. Changes can be categorized by using labels. You can configure that in .github/release-drafter.yml file.

Every time you publish a release, the Docker image is uploaded to GitHub registry with version taken from release tag.

Building docs

We are using mkdocs with material for building the docs. It lets you write the docs in Markdown format and creates a nice webpage for them.

Docs should be placed in webauth/docs/docs. They are pretty straightforward to write.

If you want to build the docs manually (for example to see how they look without publishing them) you should first install the requirements listed in webauth/docs/requirements.txt into your python environment. Then cd into webauth/docs and run:

mkdocs build

It will generate site directory with the webpage source.