forked from pwr-Solaar/Solaar
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Use mkdocs for public documentation (pwr-Solaar#2527)
* Add mkdocs config Build and debug docs locally: mkdocs serve * Add mkdocs config * Introduce GitHub action for mkdocs * Delete outdated doc files * Generate Python documentation * Clean up docs - Remove ToDos from public docs
- Loading branch information
Showing
15 changed files
with
113 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Deploy to GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- '*doc*' | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: 'pages' | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install mkdocs mkdocs-rtd-dropdown mkdocs-mermaid2-plugin mkdocstrings[python] | ||
- name: Build and deploy | ||
run: | | ||
mkdocs build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: 'site' | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Developer Documentation | ||
|
||
::: lib.hidapi | ||
handler: python | ||
options: | ||
recursive: true | ||
|
||
::: lib.hid_parser | ||
handler: python | ||
options: | ||
recursive: true | ||
|
||
::: lib.keysyms | ||
handler: python | ||
options: | ||
recursive: true | ||
|
||
::: lib.logitech_receiver | ||
handler: python | ||
options: | ||
recursive: true | ||
|
||
::: lib.solaar | ||
handler: python | ||
options: | ||
recursive: true |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
site_name: Solaar Documentation | ||
site_description: Linux Device Manager for Logitech Unifying Receivers and Devices. | ||
site_author: pwr-Solaar | ||
repo_url: https://github.com/pwr-Solaar/Solaar | ||
repo_name: Solaar | ||
logo: img/favicon.png | ||
theme: | ||
name: readthedocs | ||
docs_dir: docs | ||
nav: | ||
- Solaar: index.md | ||
- Capabilities: capabilities.md | ||
- Debian: debian.md | ||
- Devices: devices.md | ||
- Features: features.md | ||
- Translation: i18n.md | ||
- Implementation: implementation.md | ||
- Installation: installation.md | ||
- Rules: rules.md | ||
- Usage: usage.md | ||
|
||
- Developer Documentation: reference/developer_documentation.md | ||
|
||
plugins: | ||
- search | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
setup_commands: | ||
- python -m pip install . | ||
- mermaid2 | ||
markdown_extensions: | ||
- pymdownx.superfences |