Skip to content

Commit 9616897

Browse files
mattccemattcce
andauthored
Add unified documentation framework (#68)
* docs: initialise MkDocs * docs: add contributing details --------- Co-authored-by: mattcce <[email protected]>
1 parent f5a4095 commit 9616897

File tree

5 files changed

+89
-0
lines changed

5 files changed

+89
-0
lines changed

docs/unified/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
site

docs/unified/docs/contributing.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Contributing
2+
3+
### First-Time Setup
4+
5+
Requirements:
6+
7+
- Python `≥3.9.6`
8+
- [`virtualenv`](https://virtualenv.pypa.io/en/latest/installation.html) (or any virtual environment manager of choice)
9+
10+
**Configuring virtual environment**
11+
12+
1. Navigate to `java-slang/docs/unified`.
13+
2. Create new virtual environment: `python -m virtualenv .venv`.
14+
3. Move into virtual environment: `source .venv/bin/activate`.
15+
4. Get dependencies: `pip install -r requirements.txt`.
16+
17+
The virtual environment may be exited with `deactivate`.
18+
19+
### Development
20+
21+
_All commands here, unless otherwise stated, are run in the virtual environment and from the docs root `java-slang/docs/unified/docs`._
22+
23+
**Build**: `mkdocs build`
24+
25+
**Run Live Server (Offline)**: `mkdocs serve`
26+
27+
See relevant documentation:
28+
29+
- [Markdown](https://daringfireball.net/projects/markdown/)
30+
- [Material](https://squidfunk.github.io/mkdocs-material/reference/) (for added components)

docs/unified/docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `java-slang`
2+
3+
This is the user-facing documentation for [`java-slang`](https://github.com/source-academy/java-slang).

docs/unified/mkdocs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
site_name: java-slang
2+
3+
nav:
4+
- Introduction: index.md
5+
- Contributing: contributing.md
6+
7+
repo_url: https://github.com/source-academy/java-slang
8+
repo_name: source-academy/java-slang
9+
10+
theme:
11+
name: material
12+
palette:
13+
14+
# Palette toggle for light mode
15+
- scheme: default
16+
toggle:
17+
icon: material/brightness-7
18+
name: Switch to dark mode
19+
20+
# Palette toggle for dark mode
21+
- scheme: slate
22+
toggle:
23+
icon: material/brightness-4
24+
name: Switch to light mode

docs/unified/requirements.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
babel==2.17.0
2+
backrefs==5.8
3+
certifi==2025.1.31
4+
charset-normalizer==3.4.1
5+
click==8.1.8
6+
colorama==0.4.6
7+
ghp-import==2.1.0
8+
idna==3.10
9+
importlib_metadata==8.6.1
10+
Jinja2==3.1.6
11+
Markdown==3.7
12+
MarkupSafe==3.0.2
13+
mergedeep==1.3.4
14+
mkdocs==1.6.1
15+
mkdocs-get-deps==0.2.0
16+
mkdocs-material==9.6.10
17+
mkdocs-material-extensions==1.3.1
18+
packaging==24.2
19+
paginate==0.5.7
20+
pathspec==0.12.1
21+
platformdirs==4.3.7
22+
Pygments==2.19.1
23+
pymdown-extensions==10.14.3
24+
python-dateutil==2.9.0.post0
25+
PyYAML==6.0.2
26+
pyyaml_env_tag==0.1
27+
requests==2.32.3
28+
six==1.17.0
29+
urllib3==2.3.0
30+
watchdog==6.0.0
31+
zipp==3.21.0

0 commit comments

Comments
 (0)