Skip to content

Commit

Permalink
added boilerplate mkdocs along with github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Bendik Dyrli <[email protected]>
  • Loading branch information
Bendik Dyrli committed Sep 12, 2024
1 parent 3045efd commit ae007b8
Show file tree
Hide file tree
Showing 8 changed files with 831 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish docs via GitHub Pages
on:
push:
branches:
- main

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
- uses: divideprojects/poetry-export-requirements-action@v1
with:
without-hashes: true
outfile-name: requirements.txt
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REQUIREMENTS: requirements.txt
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# test-wiki
# grimstad-courses-wiki

- plugins
- https://squidfunk.github.io/mkdocs-material/reference/
- documentation
- https://www.mkdocs.org/user-guide/
1 change: 1 addition & 0 deletions docs/IKT100/faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# faq
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# grimstad-courses-wiki

Denne wiki siden er ment for å gjøre det lettere å finne og anvende guider for å f.eks koble seg på virtuelle maskiner, eller mer spesifikt for fag ol.
10 changes: 10 additions & 0 deletions docs/vm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# hvordan koble seg på en virtuell maskin

...
..
..
....

```bash
ssh 10.225.x.y -l bendid13
```
22 changes: 22 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
site_name: grimstad-courses-wiki
repo_url: https://github.com/uiano/grimstad-courses-wiki
repo_name: grimstad-courses-wiki

theme:
name: material
font: true

font:
text: Roboto
code: Roboto Mono

markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- toc:
permalink: "#"
750 changes: 750 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "grimstad-courses-wiki"
version = "0.1.0"
description = ""
authors = ["Bendik Dyrli <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
mkdocs-material = "^9.5.34"
pymdown-extensions = "^10.9"
mkdocs = "^1.6.1"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit ae007b8

Please sign in to comment.