CI: added github pages build job
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
new file mode 100644
index 0000000..f737780
--- /dev/null
+++ b/.github/workflows/gh-pages.yml
@@ -0,0 +1,18 @@
+name: GitHub Pages
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ name: Deploy docs
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout master
+ uses: actions/checkout@v1
+
+ - name: Deploy docs
+ uses: mhausenblas/mkdocs-deploy-gh-pages@1.14
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/mkdocs.yml b/mkdocs.yml
new file mode 100644
index 0000000..325434c
--- /dev/null
+++ b/mkdocs.yml
@@ -0,0 +1,43 @@
+site_name: SDL
+site_description: Simple Direct Media Layer
+docs_dir: docs
+site_dir: build/docs
+repo_url: https://github.com/libsdl-org/SDL
+repo_name: GitHub
+
+theme:
+ name: readthedocs
+ highlightjs: true
+ hljs_languages: [c]
+
+markdown_extensions:
+ - toc:
+ toc_depth: 2
+
+nav:
+ - README.md
+ - README-android.md
+ - README-cmake.md
+ - README-directfb.md
+ - README-dynapi.md
+ - README-emscripten.md
+ - README-gesture.md
+ - README-git.md
+ - README-hg.md
+ - README-ios.md
+ - README-kmsbsd.md
+ - README-linux.md
+ - README-macosx.md
+ - README.md
+ - README-nacl.md
+ - README-os2.md
+ - README-pandora.md
+ - README-platforms.md
+ - README-porting.md
+ - README-psp.md
+ - README-raspberrypi.md
+ - README-touch.md
+ - README-visualc.md
+ - README-wince.md
+ - README-windows.md
+ - README-winrt.md