Comments (3)
@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:
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.
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.
Thank you so much for your guidance @rondemena!
from mkdocs-deploy-gh-pages.
Related Issues (20)
- Installation of mkdocs-doxygen-plugin fails
- fatal: not a git reposotiry HOT 8
- How to deploy the pages to another remote? HOT 1
- Help with debugging weird behavior of action
- Git-LFS-tracked images don't show up HOT 1
- always in strict mode? HOT 5
- PDF-generator plugins fail in "Deploy docs" step HOT 2
- Actions currently failing due to conflicts in pandas?
- Force push to `gh-pages` HOT 1
- Use latest versions of mkdocs and material theme
- fatal: unsafe repository ('/github/workspace' is owned by someone else) HOT 1
- Changes accompanying GitHub Actions support for GitHub Pages
- docker: invalid reference format: repository name must be lowercase.
- βsimpleβ plugin not installed
- Update nomaterial branch HOT 2
- Support Chinese? HOT 1
- Getting permissions errors when cleaning up /github/workspace/mksite HOT 1
- Command '['git', 'push', 'origin', 'gh-pages', '--force']' returned non-zero exit status 1 HOT 1
- AttributeError: module 'jinja2' has no attribute 'contextfilter' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdocs-deploy-gh-pages.