This repository builds a static website containing Data Catalog user guides and relevant resources created at DTU Biosustain.
The website is built using Sphinx with the Wagtail Theme and deployed via GitHub Pages.
π Visit the live site: https://biosustain.github.io/data-catalog-resources/
- Latest - Documentation from main branch
- Stable - Latest release documentation
- Specific versions available at
/v{version}/
(e.g.,/v1.0.0/
)
The website automatically generates versioned documentation for each GitHub release.
data-catalog-resources/
βββ _static/ # Static assets (CSS, JS, images, files)
β βββ css/custom.css # Custom styling
β βββ js/mobile-toc.js # Mobile navigation & theme toggle
β βββ images/ # Image assets
βββ _templates/ # Custom HTML templates
βββ docs/ # Main resource content
β βββ azure.md # Azure-related setup guides
β βββ article_topic.md # Additional articles
βββ index.md # Homepage content
βββ conf.py # Sphinx configuration
βββ requirements.txt # Python dependencies
βββ README.md # This file
We welcome contributions! Please:
- Follow the branching workflow described below
- Write clear commit messages
- Test your changes locally before pushing
- Request reviews from relevant team members
- Use MyST Markdown syntax for enhanced formatting
git clone https://github.com/biosustain/data-catalog-resources.git
cd data-catalog-resources
code . # Opens VS Code
In VS Code Terminal (Ctrl/Cmd + Shift + ``
``):
git checkout -b your-working-branch
Or using VS Code Git Interface:
- Click Source Control icon (
Ctrl/Cmd + Shift + G
) - Click branch name at bottom-left β Create new branch from... β main
- Enter your branch name
- Navigate files: Explorer panel (
Ctrl/Cmd + Shift + E
) - Edit content: Click on any
.md
file to open - Save changes:
Ctrl/Cmd + S
- Preview Markdown:
Ctrl/Cmd + Shift + V
- Add articles in
docs/
folder (markdown format) - Update
index.md
for homepage content - Add images to
_static/images/
directory - Add downloadable files to
_static/files/
directory
pip install -r requirements.txt
sphinx-build -b html . _build
python -m http.server 8000 --directory _build
Open http://localhost:8000 in your browser.
Note: For more complex and thorough tests, follow the instructions in the test-deploy branch.
Using VS Code Git Interface:
- Open Source Control panel (
Ctrl/Cmd + Shift + G
) - Click + next to changed files to stage
- Enter commit message and click Commit
- Click Publish Branch or Sync
Using Terminal:
git add .
git commit -m "Add new data catalog documentation"
git push origin your-working-branch
VS Code Extension (Recommended):
- Install "GitHub Pull Requests and Issues" extension
- Click Create Pull Request in Source Control panel
- Fill in title/description and create
Web Interface:
- Visit https://github.com/biosustain/data-catalog-resources
- Click "Compare & pull request" for your branch
- Fill in details and click "Create pull request"
Note: Pull request will trigger GitHub automatic workflow, and a preview page will be generated. See README on the test-deploy branch for more info.
PR Preview Page Cleanup
A workflow is provided for manual cleanup of old PR preview directories that accumulate over time on the gh-pages
branch, in case the automatic cleanup processes were not triggered properly when the pr was merged/closed.
How to trigger
- Go to GitHub Actions
- Select "Cleanup PR Previews" workflow
- Click the "Run workflow" button and select the desired branch, if needed
- Configure options:
- max_age_days: How old directories should be to get deleted (default: 30 days)
- dry_run: Set to
true
to preview what would be deleted without actually deleting
What it cleans
- Removes PR preview directories older than the specified age
- Built with: Sphinx 7.4.7+ with MyST-NB extension
- Theme: Sphinx Wagtail Theme v6.4.0+ with custom modifications
- Deployment: GitHub Actions β GitHub Pages
- Python: 3.9+ required
For questions or issues:
- Check existing Issues
- Create a new issue with detailed description
- Contact the Research Data Management team or Ding He at DTU Biosustain
Copyright (C) 2025 [DTU Biosustain, Technical University of Denmark]
This documentation is free: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE file in this repository for more details.
You should have a copy of the GNU General Public License along with this documentation. If not, see https://www.gnu.org/licenses/.
Research Data Management Team
DTU Biosustain
Technical University of Denmark