Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
831e1fa
:memo: Outlined new documentation structure
BattleCh1cken May 8, 2024
480d892
👷 Auto deploy the documentation
BattleCh1cken May 8, 2024
6e1824a
:memo: Add an API reference
BattleCh1cken May 8, 2024
ce092fb
💚 Fix CI
BattleCh1cken May 8, 2024
1da582b
📝 Added example usage to all default theme components
Isaiah15414 May 8, 2024
cee4d03
📝 Removed start and end date arguments
Isaiah15414 May 9, 2024
fdf7979
🔀 Merge branch 'main' into feature/documentation-overhaul
BattleCh1cken May 9, 2024
f6b778b
:memo: Transfer content into website
BattleCh1cken May 9, 2024
4b5f33d
:memo: Added a toc to the reference
BattleCh1cken May 9, 2024
1d3d9e8
:green_heart: Fixed the ci
BattleCh1cken May 9, 2024
a84e0b7
:memo: Removed the old documentation
BattleCh1cken May 9, 2024
01b235d
🙈 Deleted the rendered reference
BattleCh1cken May 9, 2024
5b16de7
:memo: Added the developer documentation
BattleCh1cken May 9, 2024
9ff0989
:memo: Fixed missing heading
BattleCh1cken May 9, 2024
fbef745
:green_heart: Fix the CI
BattleCh1cken May 10, 2024
0da1d8d
:memo: Fix broken comment
BattleCh1cken May 10, 2024
81f8a4d
📝 Added basic component creation documentation
Isaiah15414 May 14, 2024
c43d085
Merge branch 'feature/documentation-overhaul' of https://github.com/B…
Isaiah15414 May 14, 2024
f955bb4
:memo: wrote more of the introductory docs
BattleCh1cken May 14, 2024
3df9d80
🔀 Merge branch 'main' into feature/documentation-overhaul
BattleCh1cken May 14, 2024
d83369c
⬆️ Upgrade flake
BattleCh1cken May 14, 2024
39df146
:memo: Started the improved basic usage guide
BattleCh1cken May 14, 2024
2d3751c
:memo: Finished usage guide
BattleCh1cken May 15, 2024
99a0ca6
🩹 Deleted redundant file
BattleCh1cken May 15, 2024
f07796d
:memo: add syntax highlighting for typst code blocks
BattleCh1cken May 15, 2024
95523f4
:green_heart: Fix ci
BattleCh1cken May 15, 2024
12ed1e4
:green_heart: Fix ci
BattleCh1cken May 15, 2024
fe38e1e
:green_heart: Fix ci
BattleCh1cken May 15, 2024
099d513
:green_heart: Fix ci
BattleCh1cken May 15, 2024
ff5e630
:memo: Started rewrite of the developer docs
BattleCh1cken May 15, 2024
66b0d0d
:memo: Finished developer documentation
BattleCh1cken May 15, 2024
3f94556
:memo: finished up some things
BattleCh1cken May 15, 2024
a0c9347
✏️ Fixed typos
Isaiah15414 May 15, 2024
084b690
:memo: Updated the contributing.md
BattleCh1cken May 15, 2024
30b244e
:memo: fix installation links
BattleCh1cken May 15, 2024
b76a479
:memo: fix approach being spelled wrong
BattleCh1cken May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 25 additions & 20 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
<!-- FIXME: replace with real url -->

> 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.

Expand All @@ -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.

<!--
You might want to create a separate issue tag for questions and include it in this description. People should then tag their issues accordingly.

Depending on how large the project is, you may want to outsource the questioning, e.g. to Stack Overflow or Gitter. You may add additional contact and information possibilities:
- IRC
- Slack
- Gitter
- Stack Overflow tag
- Blog
- FAQ
- Roadmap
- E-Mail List
- Forum
-->

## I Want To Contribute

> ### Legal Notice <!-- omit in toc -->
Expand Down Expand Up @@ -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 <localhost:8000>.

Once you've made your changes, submit your changes as a pull request, as described above.

## Style Guides
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ jobs:
- name: Run checks
run: |
just install
just docs
just gallery
# TODO: run unit tests here
56 changes: 56 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: GH Pages Deploy

on:
push:
branches: [main]
paths-ignore:
- "docs/**"

pull_request:
branches: [main]
paths-ignore:
- "docs/**"

jobs:
build-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Typst
uses: yusancky/setup-typst@v3
id: setup-typst

- name: Install Mdbook
uses: extractions/setup-crate@v1
with:
owner: rust-lang
name: mdBook

- name: Install Mdbook admonish
uses: extractions/setup-crate@v1
with:
owner: tommilligan
name: mdbook-admonish

- name: Install Mdbook typst doc
uses: baptiste0928/cargo-install@v3
with:
crate: mdbook-typst-doc
git: https://github.com/fenjalien/mdbook-typst-doc
tag: 0.1.2

- name: Build
run: |
typst compile docs/src/reference.typ --root ./
cd docs
mdbook build

- name: Deploy to GitHub Pages
if: ${{ github.event_name != 'pull_request' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: book
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ gallery/*.png
!gallery/linear-03.png
!gallery/linear-04.png
!gallery/linear-05.png

docs/book
docs/src/reference.pdf
151 changes: 0 additions & 151 deletions docs-template.typ

This file was deleted.

Binary file removed docs.pdf
Binary file not shown.
Loading