Heretto Connector for Docusaurus
Heretto CCMS enables you to deliver content from the content library to a Docusaurus-built site hosted on Netlify or to generate a static Docusaurus site that you can preview locally and deploy on your own.
Docusaurus Publishing Scenarios Management
You can add, edit, remove, enable, and disable the Docusaurus publishing scenarios.
Create a Docusaurus Scenario
Administrators can create Docusaurus publishing scenarios.
- In the Dashboard, click Docusaurus.
- Click New scenario.
- In the New scenario window, fill in the Scenario name field.
- If you want to be able to deploy Docusaurus output to Netlify:
- If needed, configure the deployment environment for Docusaurus. See Configure Publishing Microservices for Docusaurus.
- From the Environment drop-down list, select a Netlify deployment environment.
- Select the Enable deployment to Netlify check box.
- Manage the Docusaurus templates:
- Click Create.
Configure Publishing Microservices for Docusaurus
Administrators can define environments for publishing microservices.
- In the Dashboard, click Publishing Configuration.
- To create a new environment:
- To remove an environment, next to the environment, click remove.
- To modify an environment, edit the associated fields.
- Scroll down and click Save Changes.
Enable or Disable a Docusaurus Scenario
Administrators can show or hide a publishing scenario in the publishing interface.
- In the Dashboard, click Docusaurus.
- Hover-over a publishing scenario and click .
- From the context menu, select an action:
- To disable a publishing scenario, select Disable.
- To enable a disabled publishing scenario, select Enable.
Delete a Docusaurus Scenario
Administrators can delete publishing scenarios that are no longer needed.
- In the Dashboard, click Docusaurus.
- Hover-over a publishing scenario and click .
- From the context menu, select Delete.
- If prompted, confirm the deletion.
Publish Content with Docusaurus
You can deliver content from the content library to a Docusaurus-built site hosted on Netlify or to generate a static Docusaurus site that you can preview locally and deploy on your own.
Netlify is an easy to use hosting service. For more information, see https://www.netlify.com/.
In the Key Assets Section, the following links are provided:
- full_project.zip
- Useful if you want to develop your own Docusaurus template.
- build.zip
- Useful if you want to preview the Docusaurus static site locally or deploy the site on your own.
- netlify.app
- Useful if you deployed the Docusaurus static site to Netlify and you want to preview it.Warning: If you change the site name on Netlify, the link to the site in the Publish Window will not update. This will lead to sites in affected publish records showcasing an error message rather than your Netlify site.
If you deployed content to Netlify as part of the publish:
- For a map that was not deployed to Netlify yet, a new site is created.
- For a map that was already deployed to Netlify, the site is updated.
- If you deployed content to Netlify, ensure that your updates produced expected results.
- If you want to manually deploy content to Netlify, see Manually Deploy a Docusaurus Site.
- If you want to locally preview a static Docusaurus site, see Locally Preview a Docusaurus Static Site.
Locally Preview a Docusaurus Static Site
You can host the Docusaurus output on a local web server to preview it.
- Install Node.js. For more information, see https://nodejs.org.
- Publish a static site by using a Docusaurus scenario, see Publish Content with Docusaurus.
Manually Deploy a Docusaurus Site
You can manually deploy a static site to Netlify or a similar static site hosting provider.
Docusaurus Map Reference
You can use a regular DITA map to publish content with Docusaurus.
Map Structure
<map id="ditamap-465" title="Map A">
<topicref href="t1.dita">
<topicref href="t2.dita">
<topicref href="t3.dita"/>
</topicref>
</topicref>
<topichead navtitle="Topic Head A">
<topicref href="t4.dita"/>
<topichead navtitle="Topic Head B">
<topicref href="t5.dita"/>
<topicref href="t6.dita"/>
</topichead>
</topichead>
<mapref format="ditamap" href="sm1.ditamap"><data href="t7.dita" name="" scope="local" value=""/></mapref>
</map>
Sample Output
- Each topic that is a direct child of the publication map (see “Topic A”) is added to the left Table of Contents (TOC).
- Each topic nested under a topic that is a direct child of the publication map is chunked (“Topic C” and “Topic B” are chunked to “Topic A”). In other words, every child of a topic reference element is chunked.
- Each topic nested directly under a topic that is a direct child of the publication is added to the right TOC.
- Each topic head element is rendered as an expandable item in the left TOC.Important: You can nest a topic head element under a topic head element (“Topic Head B” is nested under “Topic Head A”). You cannot nest a topic head element under a topic reference element.
- Submaps do not impact the TOC structure (see “Submap A” and “Topic G”).