This is a Python script that creates a custom sidebar for a GitLab wiki page.
Python is required to run this tool.
Please make sure that Python commands can be executed on the command line.
- Save the
pre-commit
file in.git/hooks
- Save
create_sidebar.py
to the root directory of the wiki repository - When the changes are committed, create_sidebar.py is automatically executed to generate the latest sidebar.
- Only the first level of directories supports folding.
This is because folding the second and subsequent levels will result in a broken sidebar layout.