diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index a2e3b93..9648e9f 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -25,9 +25,13 @@ jobs: with: python-version: 3.x - name: Install mkdocs requirements - run: pip install mkdocs-material + run: | + pip install mkdocs-material + pip install mdx_truly_sane_lists - name: Generate documentation - run: mkdocs build + run: | + bash ./build_mkdocs.sh + mkdocs build - name: Deploy documentation to Github Pages 🚀 # we only deploy on push to main if: | diff --git a/Makefile b/Makefile index b6d031a..165671b 100644 --- a/Makefile +++ b/Makefile @@ -30,3 +30,6 @@ tests: ${DOCKER_RUN} pytest . checks: quality tests + +# To ease the process for contributors +all: build_lang lint checks \ No newline at end of file diff --git a/docs/README.md b/README.md similarity index 67% rename from docs/README.md rename to README.md index d779718..39970b3 100644 --- a/docs/README.md +++ b/README.md @@ -1,3 +1,18 @@ +
+ +
+ +## About Repo + +![GitHub language count](https://img.shields.io/github/languages/count/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=brightgreen) +![GitHub top language](https://img.shields.io/github/languages/top/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=aqua) +![GitHub last commit](https://img.shields.io/github/last-commit/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=blue) +![Github Repo Size](https://img.shields.io/github/repo-size/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=aqua) + # facets-knowledge-panels Providing knowledge panels for a particular Open Food Facts facet (category, brand, etc...) @@ -12,17 +27,11 @@ Providing knowledge panels for a particular Open Food Facts facet (category, bra - Join us on [Slack](https://openfoodfacts.slack.com/archives/C03LFRKLVBQ) - Developer documentation - - [Project setup](./how-to-guides/Project-setup-locally.md) - - [Testing](./how-to-guides/Testing.md) - - [Contributing Guidelines](./how-to-guides/CONTRIBUTING.md) -- [API Documentation](./references/API%20references.md) - -## About Repo + - [Project setup](./docs/how-to-guides/Project-setup-locally.md) + - [Testing](./docs/how-to-guides/Testing.md) + - [Contributing Guidelines](./docs/how-to-guides/CONTRIBUTING.md) +- [API Documentation](./docs/references/API%20references.md) -![GitHub language count](https://img.shields.io/github/languages/count/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=brightgreen) -![GitHub top language](https://img.shields.io/github/languages/top/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=aqua) -![GitHub last commit](https://img.shields.io/github/last-commit/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=blue) -![Github Repo Size](https://img.shields.io/github/repo-size/openfoodfacts/facets-knowledge-panels?style=for-the-badge&color=aqua) ## Contributors diff --git a/build_mkdocs.sh b/build_mkdocs.sh new file mode 100644 index 0000000..d7d7552 --- /dev/null +++ b/build_mkdocs.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Renders markdown doc in docs to html in gh_pages + +# copy README.md as the index but change links starting with ./docs/ to ./ +sed -e 's|(\./docs/|(./|g' README.md > docs/index.md \ No newline at end of file diff --git a/docs/how-to-guides/CONTRIBUTING.md b/docs/how-to-guides/CONTRIBUTING.md index dd5e69b..f339045 100644 --- a/docs/how-to-guides/CONTRIBUTING.md +++ b/docs/how-to-guides/CONTRIBUTING.md @@ -53,15 +53,12 @@ git push origin