Skip to content

THD-Spatial/github-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

THD-Spatial Repository Template

MkDocs

This repository is a template for projects under the THD-Spatial GitHub group. It provides a basic structure, documentation, and guidance to help you prepare repositories for internal collaboration and open-source release.

What this template includes

  • README.md (project overview and usage guidance)
  • CONTRIBUTING.md (contribution workflow and expectations)
  • LICENSE (required before making a repository public)
  • docs/ (documentation pages for naming conventions and open-source readiness)
  • mkdocs.yml (MkDocs configuration for documentation site generation)

Before making a repository public

Use the open-source readiness checklist before publishing a repository under THD-Spatial.

The checklist covers:

  • essential repository files (license, README, contributing, code of conduct)
  • Git LFS setup for large files
  • optional but recommended files
  • final review steps before publication

Repository naming

All repositories under THD-Spatial should follow a consistent naming convention.

Required files for public repositories

License (required)

Important

A public repository must include a license. Without a license, others do not have clear legal permission to use, modify, or distribute the code.

Repositories under THD-Spatial must include a LICENSE file before being made public.

Useful resource:

README (required)

Important

Every repository must include a README.md file that explains the project purpose, setup, and usage.

At minimum, the README should include:

  • project title and description
  • purpose / scope
  • installation and usage instructions
  • contribution guidance (or link to CONTRIBUTING.md)

CONTRIBUTING (recommended, required for community-facing repos)

Important

Add a CONTRIBUTING.md file to explain how contributors should report issues, propose changes, and submit pull requests.

Code of Conduct (recommended, strongly encouraged for public repos)

Important

A CODE_OF_CONDUCT.md file helps set expectations for respectful collaboration and creates a welcoming project environment.

A common choice:

Git LFS for large files

Important

Use Git LFS for large files (especially datasets, binaries, media, and generated assets) to keep the Git repository manageable.

Basic setup:

git lfs install
git lfs track "*.psd"

Then commit .gitattributes and your files as usual.

Note

If you publish releases and want Git LFS files included in release archives, enable:

Settings → Archives → Include Git LFS objects in archives

GitHub release archives setting

Optional but useful files

Depending on the project, consider adding:

  • CHANGELOG.md — track notable changes
  • CODEOWNERS — define review ownership
  • .github/ISSUE_TEMPLATE/ — issue templates
  • .github/pull_request_template.md — PR template
  • SECURITY.md — vulnerability reporting policy
  • SUPPORT.md — support and contact guidance

Documentation (MkDocs)

This template uses MkDocs with the Material for MkDocs theme for project documentation.

Documentation source files are located in the docs/ directory.

Run documentation locally

Install dependencies:

pip install -r docs/requirements.txt

Start the local docs server:

mkdocs serve

Then open:

  • http://localhost:8000/

Hosting documentation with GitHub Pages

This repository deploys documentation to GitHub Pages using a GitHub Actions workflow:

  • Workflow: .github/workflows/docs.yml

The workflow builds the MkDocs site and publishes it automatically when changes are pushed to the configured branch (for example, main).

Typical deployment flow

  1. Update documentation files in docs/ (and/or mkdocs.yml)
  2. Commit and push changes to the default branch
  3. GitHub Actions runs the docs workflow
  4. The site is deployed to GitHub Pages automatically

Notes

  • Make sure GitHub Pages is enabled in repository settings
  • The Pages source should be set to GitHub Actions
  • If using a project repository site, the published URL is typically:
https://<org-name>.github.io/<repo-name>/

(e.g., documentation for this repo can be accessed at https://thd-spatial.github.io/github-template/)


Notes for maintainers

This template is intended to be practical and easy to adapt. Keep it lightweight, remove sections you do not need, and update links/paths if you rename files in docs/.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published