From 091cbb27a435123396ef532e851a81e6b182d4d0 Mon Sep 17 00:00:00 2001 From: Erin Shaben Date: Mon, 3 Jun 2024 16:33:37 -0400 Subject: [PATCH] update for github pages --- .github/workflows/ci.yml | 13 ++++++++----- mkdocs.yml | 15 +++++++++------ requirements.txt | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c2e890..b6a58ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ permissions: contents: write jobs: deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 - name: Configure Git Credentials @@ -24,11 +24,14 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - name: Install pip requirements + - name: Install System Dependencies + run: | + sudo apt-get update + sudo apt-get install -y python3-dev build-essential + - name: Install pip requirements run: | - cd moonbeam-mkdocs # upgrade pip - pip3 install --upgrade pip setuptools==65.7.0 + python -m pip install --upgrade pip setuptools 'cython<3.0.0' wheel # install dependencies quietly - pip3 install -r requirements.txt &> /dev/null && echo "Dependencies installed" || echo "Error while installing dependencies" + python -m pip install -r requirements.txt - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index a6717a1..75b49a5 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,9 +1,8 @@ # Replace XXX with the network's name 'site_name': 'Pepe Docs' 'site_url': 'https://papermoonio.github.io/demo-docs/' -'site_dir': '/var/www/pepe-docs-static' 'docs_dir': 'pepe-docs' -'copyright': '© 2023 Pepe Foundation. All Rights Reserved.' +'copyright': '© 2024 Pepe Foundation. All Rights Reserved.' # Used for extra javascript files in the `docs` repository # 'extra_javascript': # - 'js/externalLinkModal.js' # Enable if you want a warning when users leave your site @@ -11,13 +10,17 @@ # - 'js/initKapaWidget.js' # Enable if project is using Kapa # Used for additional CSS files and custom fonts. If you're using a publicly available font, this is not necessary 'extra_css': - - '/assets/stylesheets/terminal.css' + - 'assets/stylesheets/extra.css' + - 'assets/stylesheets/home.css' + - 'assets/stylesheets/index-page.css' + - 'assets/stylesheets/pepe.css' + - 'assets/stylesheets/terminal.css' 'theme': 'name': 'material' 'custom_dir': 'material-overrides' - 'favicon': '/assets/images/pepe-favicon.png' - 'logo': '/assets/images/pepe-logo.png' - 'logo_dark_mode': '/assets/images/pepe-logo-dark.png' # Only required if using dark and light modes #'font': # This is for Google Fonts + 'favicon': 'assets/images/pepe-favicon.png' + 'logo': 'assets/images/pepe-logo.png' + 'logo_dark_mode': 'assets/images/pepe-logo-dark.png' # Only required if using dark and light modes #'font': # This is for Google Fonts #'text': 'XXX' # Add the name of the font. The default is Roboto #'code': 'XXX' # This is optional. The default is Roboto Mono 'features': diff --git a/requirements.txt b/requirements.txt index 5944472..892c66c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,7 @@ Pillow==9.4.0 Pygments==2.18.0 pymdown-extensions==10.8.1 python-dateutil==2.8.2 -PyYAML==6.0 +PyYAML!=6.0.0,!=5.4.0,!=5.4.1 regex==2022.10.31 requests==2.32.2 six==1.16.0