0.2.1 • Published 6 months ago
@labset/confluence-website v0.2.1
confluence-website
install it
- with npm
npm install @labset/confluence-website --save-dev- with yarn
yarn add @labset/confluence-website -Dconfigure your site
./node_modules/.bin/confluence-website init-envit creates a .env file with the following properties
CONFLUENCE_SITE_NAME: the Confluence cloud instance you want to generate a site from (name.atlassian.net)CONFLUENCE_USERNAME: the username to use to consume Confluence APIsCONFLUENCE_API_TOKEN: the user personal access token to consume Confluence APIsCUSTOM_DOMAIN: the domain name of where your generated site will be hosted
./node_modules/.bin/confluence-website init-siteit creates a .confluence-website.json file with the following configuration
{
"title": "confluence-website",
"iconUrl": "",
"name": "space name",
"theme": {
"name": "confluence-website",
"backgroundColor": "rgb(0, 102, 68)",
"highlightColor": "#FFFFFF"
}
}extract your site content
./node_modules/.bin/confluence-website extract-space <spaceKey>build your site
./node_modules/.bin/confluence-website build-space <spaceKey>