Skip to content

Commit

Permalink
Feat: replace jekyll with mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Sep 22, 2024
1 parent 0cd2471 commit e1fc2d4
Show file tree
Hide file tree
Showing 88 changed files with 103 additions and 350 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@ jobs:
run: |
sudo apt-get install -y doxygen graphviz luadoc
sudo npm install --location=global jsdoc
./build.sh api_doc
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
./build.sh doc _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
/docs/assets/apidoc.js
/docs/scripting/scripts/index.json
/docs/.jekyll-cache/
/docs/_site/
/docs/luadoc/
_site/

#private files
.secrets
23 changes: 9 additions & 14 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,7 @@ cleanup() {
rm -rf htdocs/assets/i18n

#generated documentation
rm -rf docs/_site
rm -rf docs/.jekyll-cache
rm -rf _site
rm -rf docs/doxygen
rm -rf docs/jsdoc

Expand Down Expand Up @@ -1357,21 +1356,17 @@ run_luadoc() {

create_doc() {
DOC_DEST=$1
if ! check_cmd jekyll
install -d "$DOC_DEST" || return 1
if ! check_cmd python3
then
echo "Jekyll not installed, can not create documentation"
echo "Python3 not installed, can not create documentation"
return 1
fi
if ! run_doxygen
then
echo "Skipped generation of c api documentation"
fi
if ! run_jsdoc
then
echo "Skipped generation of js api documentation"
fi
install -d "$DOC_DEST" || return 1
jekyll build -s "$STARTPATH/docs" -d "$DOC_DEST"
./build.sh api_doc
python3 -m venv ~/python-venv/
~/python-venv/bin/pip install mkdocs mkdocs-material \
mkdocs-include-markdown-plugin mkdocs-awesome-pages-plugin
~/python-venv/bin/mkdocs build -d "$DOC_DEST"
}

translation_import() {
Expand Down
1 change: 1 addition & 0 deletions docs/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
order_by: filename
11 changes: 2 additions & 9 deletions docs/index.md → docs/000-index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: page
permalink: /
title: myMPD documentation
title: myMPD Documentation
---

myMPD is a standalone and mobile friendly web-based MPD client with a tiny footprint and advanced features.
Expand All @@ -12,12 +12,5 @@ myMPD is a standalone and mobile friendly web-based MPD client with a tiny footp

To use all myMPD functions you should use the latest stable MPD version.

This documentation is for myMPD version {% include version %}.
This documentation is for myMPD version {% include-markdown "_includes/version" %}.

<div id="toc" class="d-none">
{% include nav.html %}
</div>

***

<a href="https://github.com/jcorporation">&copy; 2018-2024 Jürgen Mang</a>
1 change: 1 addition & 0 deletions docs/010-installation/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Installation
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
layout: page
permalink: /installation/compiling/build-sh
title: Compiling with build.sh
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
layout: page
permalink: /installation/compiling/cmake
title: Compiling with cmake
---

Expand Down Expand Up @@ -37,7 +35,6 @@ sudo make -C build install
| MYMPD_MANPAGES | ON | Creates and installs manpages |
| MYMPD_MINIMAL | OFF | Enables minimal myMPD build, disables all MYMPD_ENABLE_* flags |
| MYMPD_STARTUP_SCRIPT | ON | Installs the startup script, valid values: ON, OFF, SYSTEMD, OPENRC, SYSVINIT, FREEBSD |
{: .table .table-sm}

## cmake build types

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
layout: page
permalink: /installation/compiling/freebsd
title: FreeBSD
---

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions docs/installation/index.md → docs/010-installation/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
layout: page
permalink: /installation/
title: Installation
---

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions docs/020-configuration/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Configuration
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/050-scripting/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Scripting
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
layout: page
permalink: /scripting/mympd-script
title: Scripting
title: mympd-script
---

`mympd-script` is a small command line tool to execute myMPD scripts.
Expand Down
4 changes: 1 addition & 3 deletions docs/scripting/widges.md → docs/050-scripting/widgets.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
layout: page
permalink: /scripting/widges
title: Home screen widges
title: Home screen widgets
---

Scripts for home screen widges must return a valid http response. The response body will be inserted in the widget body.
Expand Down
1 change: 1 addition & 0 deletions docs/060-references/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: References
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions docs/060-references/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: page
permalink: /references/
title: References
---

- [API Documentation](references/api/)
- [Components](references/components)
- [Custom navbar icons](references/custom-navbar-icons)
- [Feature matrix](references/feature-matrix)
- [Filesystem hierarchy](references/filesystem-hierarchy)
- [Local playback](references/local-playback)
- [Lyrics](references/lyrics)
- [Partitions](references/partitions)
- [Pictures](references/pictures)
- [Published directories](references/published-directories)
- [Smart playlists](references/smart-playlists)
- [Sticker](references/sticker)
- [Tags](references/tags)
- [Translating](references/translating)
- [Trigger](references/trigger)
- [Webserver uris](references/webserver-uris)

## Source documentation

If you want to hack on myMPD:

- [Backend API Documentation](/doxygen/html/index.html) &ndash; generated by [Doxygen](https://www.doxygen.nl/)
- [Frontend API Documentation](/jsdoc/index.html) &ndash; generated by [JSDoc](https://jsdoc.app/)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions docs/070-additional-topics/.pages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Additional topics
13 changes: 13 additions & 0 deletions docs/070-additional-topics/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: page
permalink: /additional-topics/
title: Additional topics
---

Here can you find some examples for advanced configurations.

- [Behind a reverse proxy](additional-topics/behind-a-reverse-proxy)
- [Multiple myMPD instances on same host](additional-topics/multiple-myMPD-instances-on-same-host)
- [Recommended MPD configuration](additional-topics/recommended-mpd-configuration)
- [Multiroom audio system using MPD/myMPD and pulseaudio](additional-topics/multiroom-audio-using-pulseaudio-rtp)
- [MPD satellite setup](additional-topics/mpd-satellite-setup)
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion docs/_config.yml

This file was deleted.

13 changes: 0 additions & 13 deletions docs/_includes/breadcrumbs.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/_includes/nav-additional-topics.html

This file was deleted.

18 changes: 0 additions & 18 deletions docs/_includes/nav-references.html

This file was deleted.

43 changes: 0 additions & 43 deletions docs/_includes/nav.html

This file was deleted.

38 changes: 0 additions & 38 deletions docs/_layouts/default.html

This file was deleted.

5 changes: 0 additions & 5 deletions docs/_layouts/page.html

This file was deleted.

9 changes: 0 additions & 9 deletions docs/additional-topics/index.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/assets/css/bootstrap.min.css

This file was deleted.

7 changes: 7 additions & 0 deletions docs/assets/css/mympd.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:root {
--md-primary-fg-color: #28a745;
--md-primary-fg-color--light: #28a745;
--md-primary-fg-color--dark: #28a745;
--md-accent-fg-color: #28a745;
--md-accent-fg-color--transparent: #28a745;
}
Loading

0 comments on commit e1fc2d4

Please sign in to comment.