Skip to content

Commit 30f17b6

Browse files
committed
feat: enhance MkDocs setup and documentation, add .gitignore for project files
1 parent 999235f commit 30f17b6

6 files changed

Lines changed: 180 additions & 1 deletion

File tree

‎.gitignore‎

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# MkDocs
2+
/site/
3+
.cache/
4+
5+
# Python
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
9+
*.so
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# Virtual environments
29+
.env
30+
.venv
31+
env/
32+
venv/
33+
ENV/
34+
env.bak/
35+
venv.bak/
36+
37+
# IDE
38+
.vscode/settings.json
39+
.vscode/launch.json
40+
.vscode/tasks.json
41+
.vscode/.ropeproject
42+
.idea/
43+
*.swp
44+
*.swo
45+
*~
46+
47+
# OS
48+
.DS_Store
49+
.DS_Store?
50+
._*
51+
.Spotlight-V100
52+
.Trashes
53+
ehthumbs.db
54+
Thumbs.db
55+
56+
# Logs
57+
*.log
58+
logs/
59+
60+
# Temporary files
61+
*.tmp
62+
*.temp
63+
.tmp/
64+
.temp/
65+
66+
# Node.js (if using any Node-based tools)
67+
node_modules/
68+
npm-debug.log*
69+
yarn-debug.log*
70+
yarn-error.log*
71+
package-lock.json
72+
yarn.lock
73+
74+
# Backup files
75+
*.bak
76+
*.backup
77+
*~
78+
79+
# Task
80+
.task/
81+
.task/**
82+
**/.task/

‎.vscode/settings.json‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
22
"cSpell.words": [
33
"codebaseinterface",
4+
"fontawesome",
5+
"inlinehilite",
6+
"linenums",
7+
"livereload",
8+
"mkdocs",
9+
"pymdown",
10+
"pymdownx",
411
"RUNBOOK",
5-
"taskfile"
12+
"superfences",
13+
"taskfile",
14+
"vars"
615
]
716
}

‎CONTRIBUTING.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ task --version
2121
```bash
2222
task --list
2323
```
24+
25+
## Docs
26+
27+
```bash
28+
pip install mkdocs mkdocs-material mkdocs-git-revision-date-localized-plugin
29+
```

‎Taskfile.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,21 @@ tasks:
1111
cmds:
1212
- echo "{{.GREETING}}"
1313
silent: true
14+
15+
setup:
16+
desc: Set up the development environment
17+
cmds:
18+
- pip install mkdocs-material
19+
- pip install mkdocs-git-revision-date-localized-plugin
20+
- pip install pymdown-extensions
21+
silent: true
22+
23+
build:
24+
desc: Build the MkDocs site
25+
cmds:
26+
- mkdocs build --strict
27+
28+
run:
29+
desc: Run codebaseinterface locally
30+
cmds:
31+
- mkdocs serve --livereload

‎docs/index.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Codebase Interface
2+
3+
## Principles
4+
5+
test test 1

‎mkdocs.yml‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
site_name: Codebase Interface
2+
site_description: A documented set of principles that aim to promote the ease of use of codebases across languages and frameworks
3+
site_url: https://codebaseinterface.org
4+
repo_url: https://github.com/codebaseinterface/codebaseinterface
5+
repo_name: codebaseinterface/codebaseinterface
6+
edit_uri: edit/main/docs/
7+
8+
theme:
9+
name: material
10+
features:
11+
- navigation.tabs
12+
- navigation.sections
13+
- navigation.expand
14+
- navigation.top
15+
- search.highlight
16+
- search.share
17+
- content.code.copy
18+
- content.action.edit
19+
palette:
20+
- scheme: default
21+
primary: blue
22+
accent: blue
23+
toggle:
24+
icon: material/brightness-7
25+
name: Switch to dark mode
26+
- scheme: slate
27+
primary: blue
28+
accent: blue
29+
toggle:
30+
icon: material/brightness-4
31+
name: Switch to light mode
32+
33+
nav:
34+
- Home: index.md
35+
36+
plugins:
37+
- search
38+
- git-revision-date-localized:
39+
type: date
40+
41+
markdown_extensions:
42+
- pymdownx.highlight:
43+
anchor_linenums: true
44+
- pymdownx.inlinehilite
45+
- pymdownx.snippets
46+
- pymdownx.superfences
47+
- admonition
48+
- pymdownx.details
49+
- attr_list
50+
- md_in_html
51+
- toc:
52+
permalink: true
53+
54+
extra:
55+
social:
56+
- icon: fontawesome/brands/github
57+
link: https://github.com/codebaseinterface/codebaseinterface
58+
59+
copyright: Copyright © 2023-2025 Codebase Interface Contributors

0 commit comments

Comments
 (0)