Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.37 KB

CONTRIBUTING.md

File metadata and controls

54 lines (35 loc) · 2.37 KB

Contribution Guide

This document describes how you can contribute documentation to Promitor.

The documentation for Promitor is stored in /docs.

What technologies are we using?

Documentation is written in Markdown and uses MkDocs for Material to generate a static website that is served with GitHub Pages from the live-docs branch.

In addition, Mike is being used to leverage versioned documentation.

For every new Promitor version, a new Git tag is created which automatically builds and pushes a new doc version. Next to that, every push on main branch will update the unreleased version of the documentation that is automatically published through GitHub Actions.

Contribution Guides

Documenting a new scraper

Documenting a new scraper is fairly simple and only requires a few steps in the docs\ folder:

  1. Create a new document in scraping\providers based on scraping\scraper.md.template.
  2. Add the new scraper to the navigation in mkdocs.yml.
    • Ensure that the scraper is listed alphabetically in the Scraping section of the navigation.
  3. Add the new scraper to the supported scrapers list for resource discovery in mkdocs.yml, when applicable.
    • The Supported Providers section of Resource Discovery in the navigation
    • Ensure that the scraper is listed alphabetically.
  4. If the scraper provides scraper-specific labels, they should be documented in scraping/labels.md under "Scraper-specific labels".

Creating a PR with live preview

Every PR will automatically build and deploy a preview version of the documentation for you with Netlify. This allows you to easily contribute changes without having to fully configure your local environment.

Running the documentation locally

  • Install Python:
⚡ tkerkhove@tomkerkhove C:\promitor
❯  choco install python
  • Install dependencies
⚡ tkerkhove@tomkerkhove C:\promitor
pip install -r requirements.txt
  • Serve the documentation:
⚡ tkerkhove@tomkerkhove C:\promitor
mkdocs serve