This action will help you with publishing markdown files in an easy way. It uses the Confluenza Solo Template to create browsable documentation from plain md(x) files.
Add a CONFLUENZA.yml
in your project with the menu structure and tags.
This is a mandatory field.
Add a folder src\pages
with markdown (.md
or .mdx
) files.
Add a frontmatter to a file with information about:
path
: url pathtitle
: title of sectiontag
: tag, which will be used to group items in the side bar menu
This is mandatory content.
Add a gatsby-config.js
file.
This file contains:
- the
title
of the site - the
prefixPath
(if necessary, see confluenza documentation) - the
editBaseUrl
See gatsby-config.js for an example.
This is a mandatory field.
Temporary solution: This will be removed when #2 is implemented.
Add the README.md
file.
In a lot of cases, you want to use the basic README.md file in your published documentation.
If the README.md exists, it will copy it.
This is an optional field.
Add the CONTRIBUTING.md
file.
In a lot of cases, you want to use the CONTRIBUTING.md file in your published documentation.
If it exists, it will be copied.
This is an optional field.
- name: Check out code 🛎️
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 14.x
- name: Create confluenza pages 📦
uses: confluenza/confluenza-action@main
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: public
CLEAN: true
container: node:16
steps:
- name: Check out code 🛎️
uses: actions/checkout@v2
- name: Create confluenza pages 📦
uses: confluenza/confluenza-action@docker
env:
PREFIX_PATH: true
- name: Install rsync
run: apt-get update && apt-get install -y rsync && apt-get clean
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: public
CLEAN: true
MIT