Docploy is currently available for GitHub as an Action. Other platform support is on the roadmap.
Docploy builds the .md
files located under your docploy/docs/
folder and deploys them to GitHub Pages. You can set up Docploy on GitHub by following the steps on this page.
Enable GitHub Pages
Go to your GitHub repo's Settings page.
Click on Pages in the left sidebar.
Under Build and Deployment, Source, select GitHub Actions.
Add the Docploy action
Add the following to your repo's .github/workflows/main.yml
:
Replace the `baseUrl` and `docsDir` in the `main.yml` example below
Each new code push will deploy and overwrite the current documentation to your GitHub Page.
on: [push]jobs:docploy:name: Docployruns-on: ubuntu-latestpermissions:pages: writeid-token: writeenvironment:name: github-pagessteps:- name: Publish docsuses: docploy/docploy-action@v1.4with:baseUrl: 'https://<org>.github.io/<repo>' # replace this with your GitHub Pages urldocsDir: 'docs' # the docs/ folder under the docploy/ folder with your .md files