Skip to content
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

Add MkDocs documentation #4 #14

Merged
merged 25 commits into from
Feb 2, 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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ venv.bak/
.ropeproject

# mkdocs documentation
/site
/super-docs/site

# mypy
.mypy_cache/
Expand Down
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/collaboration/citation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Citation

See the *Cite this repository* function or [CITATION.cff](https://github.com/rl-institut/super-repo/blob/develop/CITATION.cff) for citation of this repository.
4 changes: 4 additions & 0 deletions docs/collaboration/code_of_conduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Code of Conduct

This repository is following the [Contributor Covenant Code of Conduct](https://github.com/rl-institut/super-repo/blob/production/CODE_OF_CONDUCT.md). <br>
Everyone is asked to be self-reflective and always maintain a good culture of discussion and active participation.
6 changes: 6 additions & 0 deletions docs/collaboration/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Contributing

This software is licensed under an open-source license and can be downloaded,
executed and modified. <br>
To contribute to the collaborative development follow the workflow described in
[CONTRIBUTING.md](https://github.com/rl-institut/super-repo/blob/develop/CONTRIBUTING.md).
4 changes: 4 additions & 0 deletions docs/collaboration/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Collaboration

This open-source software is a collaborative effort. <br>
The repository has several elements to provide necessary functions.
4 changes: 4 additions & 0 deletions docs/collaboration/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License

This software is developed under an [open-source license](https://en.wikipedia.org/wiki/Open-source_license). <br>
The selected license can be read in the [LICENSE.txt](https://github.com/rl-institut/super-repo/blob/develop/LICENSE.txt).
3 changes: 3 additions & 0 deletions docs/collaboration/users.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Users

Known user of this software can be added to [USERS.cff](https://github.com/rl-institut/super-repo/blob/develop/USERS.cff) for reference.
7 changes: 7 additions & 0 deletions docs/css/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:root > * {
--md-primary-fg-color: #0f3b64;
--md-primary-fg-color--dark: #5d6cc0;
--md-typeset-a-color: #5ba6ec;
/* --md-text-font-color: #ffffff; */
/* --md-primary-fg-color--light: #ECB7B7; */
}
19 changes: 19 additions & 0 deletions docs/documentation/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Documentation

- README.rst
- CHANGELOG.md
- docs/
- MkDocs
- mkdocstrings


## MkDocs

`pip install mkdocs` install MkDocs <br>
`pip install mkdocs-material` install the material theme <br>
`mkdocs serve` start the local live version of the documentation

`mkdocs build` build the documentation

Publish MkDocs project on github pages (requires permissions on repository) <br>
`mkdocs gh-deploy` manually deploy the local docs files to github pages
7 changes: 7 additions & 0 deletions docs/git/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Git

- .gitignore
- .github
- issue_template
- pull_request_template
- workflows (testing)
Binary file added docs/img/logo_oefamily_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/logo_rli_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
hide:
- footer
- toc
---

# Welcome to the Super-Repo Documentation

A template repo to test and document elements and features for research software. <br>
It implements the collection of repository elements and files. <br>
The goal is to simplify and standardise the creation of software in GitHub repositories.

## Fields for development:

- COLLABORATION
- GIT
- DOCUMENTATION
- INSTALL
- CODE-STYLE
- TESTS
- LOGGING
- RELEASE
7 changes: 7 additions & 0 deletions docs/install/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Install

- requirements.txt
- requirements_dev.txt
- environment.yml
- setup.py
- pyproject.toml
6 changes: 6 additions & 0 deletions docs/release/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Release

- RELEASE_PROCEDURE.md
- VERSION
- MANIFEST.in
- .bumpversion.cfg
64 changes: 64 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Project
site_name: Super-Repo Documentation
site_url:
site_description: Write your documentation in Markdown and create a static page for your developer and user community

# Repository
repo_name: rl-institut/super-repo
repo_url: https://github.com/rl-institut/super-repo
docs_dir: docs

# Configuration
theme:
name: material
logo: img/logo_rli_small.png
palette:
# Palette toggle for dark mode
- scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
# Palette toggle for light mode
- scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
icon:
repo: fontawesome/brands/github
features:
- navigation.tabs
- navigation.tabs.sticky
- navigation.sections
- navigation.indexes
- navigation.path
- navigation.tracking
- navigation.top
- toc.follow

# Customization
extra:
generator: false

extra_css:
- css/extra.css

# Navigation
nav:
- Home: index.md
- Development:
- Collaboration:
- collaboration/index.md
- License: collaboration/license.md
- Citation: collaboration/citation.md
- Contributing: collaboration/contributing.md
- Users: collaboration/users.md
- Code of Conduct: collaboration/code_of_conduct.md
- Git:
- git/index.md
- Documentation:
- documentation/index.md
- Release:
- release/index.md
- Code Documentation:
- Install:
- install/index.md