Giter VIP home page Giter VIP logo

Comments (3)

rondemena avatar rondemena commented on June 2, 2024 1

@rterror the actions.sh script prescriptively serves that purpose.

According to the README.md,

It allows you to define 'REQUIREMENTS:' in the action.yml file.

In order for it to operate you need to also include in the action.yml the 'CONFIG_FILE:' to reference the mkdocs.yml file of your configuration which should also references to those plugins. Assuming I traced them back, they are the following in proper reference:

  1. mkdocs-glightbox
  2. mkdocs-meta-manager

Only after both configuration details are included will the container compose the static site and deploy it as expected. I did not see any need for 'EXTRA_PACKAGES:' with these two plugins. However, if you have other plugins, be cautious to include again both the 'REQUIREMENTS:' and the mkdocs.yml updates in your template. An important detail is to also ensure you use consistent white spacing to prevent issues in these documents.

from mkdocs-deploy-gh-pages.

rterror avatar rterror commented on June 2, 2024

It works for me and thank you so much. @rondemena
I create an requirements.txt in root directory of Material project and add two dependencies

mkdocs-meta-manager==0.2.1
mkdocs-glightbox==0.3.4

As to my github action workflow yml file, I add last two line of configurations:

name: Publish docs via GitHub Pages
on:
  push:
    branches:
      - main
jobs:
  build:
    name: Deploy docs
    runs-on: ubuntu-latest
    steps:
      - name: Checkout main
        uses: actions/checkout@v2
      - name: Deploy docs
        uses: mhausenblas/mkdocs-deploy-gh-pages@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          EXTRA_PACKAGES: build-base
          REQUIREMENTS: requirements.txt
          CONFIG_FILE: mkdocs.yml

Finally, it works for my case.

from mkdocs-deploy-gh-pages.

mhausenblas avatar mhausenblas commented on June 2, 2024

Thank you so much for your guidance @rondemena!

from mkdocs-deploy-gh-pages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.