From 084b690158c2aad6ea4d743e530516d81336c981 Mon Sep 17 00:00:00 2001 From: BattleCh1cken Date: Wed, 15 May 2024 18:49:35 -0400 Subject: [PATCH] :memo: Updated the contributing.md --- .github/CONTRIBUTING.md | 45 +++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 9e1bbd9..39f9734 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -29,7 +29,9 @@ All types of contributions are encouraged and valued. See the [Table of Contents ## I Have a Question -> If you want to ask a question, we assume that you have read the available [Documentation](../docs.pdf). + + +> If you want to ask a question, we assume that you have read the available [Documentation](). Before you ask a question, it is best to search for existing [Issues](https://github.com/BattleCh1cken/notebookinator.git/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first. @@ -41,21 +43,6 @@ If you then still feel the need to ask a question and need clarification, we rec We will then take care of the issue as soon as possible. - - ## I Want To Contribute > ### Legal Notice @@ -153,16 +140,34 @@ You can then [commit](#commit-messages) your changes to your fork. Once you are ### Improving The Documentation -We use [Tidy](https://github.com/Mc-Zen/tidy/tree/main) to generate our documentation. This means that most of our documentation is written directly in the code as comments. +We use a combination of [mdBook](https://github.com/rust-lang/mdBook) and [Tidy](https://github.com/Mc-Zen/tidy/tree/main) to generate our documentation. -You can improve the documentation in the following places: +All of the documentation can be found inside of the [`docs/`](../docs) directory. +- The guides located in [`docs/src/`](../docs/src) - The comments directly in the code -- The documentation in [`docs.typ`](../docs.typ) -- The template for the docs at [`docs-template.typ`](../docs-template.typ) - The [README](../README.md) - The [contributing guide](./CONTRIBUTING.md)(this file) +You can preview your changes locally with the mdbook cli. The first thing you'll need to do is install all of the dependences. + +```bash +cargo install --git https://github.com/typst/typst --locked typst-cli +cargo install mdbook +cargo install mdbook-admonish +cargo install --git https://github.com/fenjalien/mdbook-typst-doc.git +``` + +Once everything has installed, render the documentation with these commands: + +```bash +typst compile docs/src/reference.typ --root ./ +cd docs +mdbook serve +``` + +You can then view your notebook by visiting . + Once you've made your changes, submit your changes as a pull request, as described above. ## Style Guides