Skip to content

Commit

Permalink
Add MkDocs configuration and documentation structure
Browse files Browse the repository at this point in the history
  • Loading branch information
timetravelCat committed Dec 7, 2024
1 parent cca4fed commit 8790dfe
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# https://github.com/mhausenblas/mkdocs-template?tab=readme-ov-file
# https://github.com/marketplace/actions/deploy-mkdocs

name: Publish docs via GitHub Pages
on:
push:
branches:
- main

permissions:
contents: write

jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
# CUSTOM_DOMAIN: optionaldomain.com
# GITHUB_DOMAIN: github.myenterprise.com
# REQUIREMENTS: folder/requirements.txt
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ This template is designed with a primary focus on enabling individuals to set up
┃ ┣ 📜Version.h.in
┃ ┣ 📜clang-tidy.cmake
┃ ┗ 📜cppcheck.cmake
┣ 📦docs
┃ ┣ 📜index.md
┣ 📂include
┃ ┗ 📂ExampleProject
┃ ┃ ┗ 📜Version.h
Expand All @@ -95,7 +97,8 @@ This template is designed with a primary focus on enabling individuals to set up
┣ 📜.pre-commit-config.yaml
┣ 📜CMakeLists.txt
┣ 📜LICENSE
┗ 📜README.md
┣ 📜README.md
┗ 📜mkdocs.yml
---

## 🚀 Getting Started
Expand Down Expand Up @@ -128,6 +131,6 @@ For any inquiries or support, please contact [email protected]
## ✅ TODO
- [ ] Automatically detect CUDA and CUDA hardware.
- [ ] ROS2 branch, for ROS2-based packages.
- [ ] Project documentation template.
- [x] Project documentation template (using mkdocs).
- [ ] Option for direct use of Docker image including all major features.
- [x] Add CI/CD pipeline for automated testing and deployment.
40 changes: 40 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Sample

One more, finally. Or not? :)

Now:

```
$ some
```

Look what she said:

> This is it!
### Subtitle

And now this:

- One
- Two
- Three


#### As well

#### As this

### Another

[a link](https://aws.com)

More?


Can we now have `the build`?

NOW!


Not gonna work, is it?
10 changes: 10 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
site_name: Test docs
site_description: "A docs test"
site_author: "timetravelCat"
docs_dir: docs/
repo_name: "timetravelCat/UPT"
repo_url: "https://github.com/timetravelCat/UPT"
nav:
- Home: index.md
theme:
name: "material"

0 comments on commit 8790dfe

Please sign in to comment.