From e539bde6508ed58e2bbe046a9c1720fe9cf501d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81rni=20Dagur?= Date: Sun, 24 May 2020 02:57:26 -0400 Subject: Place a 'index.html' file at the root of Github Pages --- .github/workflows/ci.yml | 11 ++++------- .gitignore | 3 --- web/create_site.bash | 10 ++++++++++ web/static/index.html | 19 +++++++++++++++++++ 4 files changed, 33 insertions(+), 10 deletions(-) create mode 100644 web/create_site.bash create mode 100644 web/static/index.html diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0efb061..a5c429c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,14 +155,11 @@ jobs: toolchain: nightly override: true - - name: Build documentation - uses: actions-rs/cargo@v1 - with: - command: doc - args: --all-features + - name: Build Github Pages + run: bash web/create_site.bash - - name: Deploy documentation + - name: Deploy Github Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./target/doc \ No newline at end of file + publish_dir: ./target/github-pages \ No newline at end of file diff --git a/.gitignore b/.gitignore index fb366a8..12a4447 100644 --- a/.gitignore +++ b/.gitignore @@ -238,6 +238,3 @@ dmypy.json # Cython debug symbols cython_debug/ -# static files generated from Django application using `collectstatic` -media -static diff --git a/web/create_site.bash b/web/create_site.bash new file mode 100644 index 0000000..b106d8c --- /dev/null +++ b/web/create_site.bash @@ -0,0 +1,10 @@ +#!/bin/bash +set -euxo pipefail + +# This script assumes that the current working directory is the repository +# root. + +mkdir -p target +cp -r web/static target/github-pages +cargo doc --all-features +cp -r target/doc target/github-pages/docs diff --git a/web/static/index.html b/web/static/index.html new file mode 100644 index 0000000..b50e061 --- /dev/null +++ b/web/static/index.html @@ -0,0 +1,19 @@ + + + + Python Adblock + + + + + + +
+

Python Adblock

+ +
+ + -- cgit v1.2.3