Skip to content

add mkdocs files #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
49 changes: 49 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
site_name: CPP Lab datasets
repo_url: https://github.com/marcobarilari/Datasets.git

nav:
- CPP Lab raw data:
- Home: README.md
- Contributing: CONTRIBUTING.md

theme:
name: material
features:
- navigation.top
- content.action.edit
icon:
repo: fontawesome/brands/github
edit: material/pencil
palette:
# Palette toggle for automatic mode
- media: (prefers-color-scheme)
toggle:
icon: material/brightness-auto
name: Switch to light mode
# Palette toggle for light mode
- media: '(prefers-color-scheme: light)'
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: '(prefers-color-scheme: dark)'
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference

edit_uri: edit/main/src/

markdown_extensions:
- toc:
anchorlink: true
- pymdownx.superfences

plugins:
- search

docs_dir: src

use_directory_urls: false
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mkdocs>=1.1
mkdocs-material>=5.4
pre-commit
black
flake8
28 changes: 28 additions & 0 deletions src/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# CONTRIBUTING

- fork this repository
- clone your forked repository
- install the dependencies

```bash
pip install -r requirements.txt
```

- create a branch
- make your changes
- visualize your changes

```bash
mkdocs serve
```

This should serve the doc locally on a localhost port.

Something like:

```
Serving on http://127.0.0.1:8000/
```

- push your changes to your forked repository
- open a pull request