Skip to content

Commit

Permalink
feature(decap-cms): Configure Decap CMS to monitor key documents
Browse files Browse the repository at this point in the history
Tailors Decap CMS to work with the tech doc stack, specifically
targeting the following folders:

- Before Integrating
- Configuration for Production
- Integrate with Integration environment
- Test your Integration
- Pages stored in the root directory

This is likely a good starter for 10 to demonstrate what's possible, but
may not be the full scope of what we'd want decap to support
  • Loading branch information
huwd committed Nov 28, 2024
1 parent 052c89c commit 4f5e10a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 3 deletions.
65 changes: 65 additions & 0 deletions source/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
publish_mode: editorial_workflow
site_url: https://docs.sign-in.service.gov.uk/
backend:
name: github
repo: govuk-one-login/tech-docs
branch: main
media_folder: "/source/images"
public_folder: "/source/public"
collections:
- name: before-integrating
label: Before Integrating
folder: source/before-integrating
extension: .md.erb
format: yaml-frontmatter
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Weight', name: 'weight', widget: 'string' }
- { label: 'Last Review Date', name: 'last_reviewed_on', widget: 'string' }
- { label: 'Next Review Period', name: 'review_in', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }
- name: configure-for-production
label: Configuration for Production
folder: source/configure-for-production
extension: .md.erb
format: yaml-frontmatter
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Weight', name: 'weight', widget: 'string' }
- { label: 'Last Review Date', name: 'last_reviewed_on', widget: 'string' }
- { label: 'Next Review Period', name: 'review_in', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }
- name: integrate-with-integration-environment
label: Integrate with Integration environment
folder: source/integrate-with-integration-environment
extension: .md.erb
format: yaml-frontmatter
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Weight', name: 'weight', widget: 'string' }
- { label: 'Last Review Date', name: 'last_reviewed_on', widget: 'string' }
- { label: 'Next Review Period', name: 'review_in', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }
- name: test-your-integration
label: Test your integration
folder: source/test-your-integration
extension: .md.erb
format: yaml-frontmatter
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Weight', name: 'weight', widget: 'string' }
- { label: 'Last Review Date', name: 'last_reviewed_on', widget: 'string' }
- { label: 'Next Review Period', name: 'review_in', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }
- name: pages
label: Pages
folder: source/
extension: .md.erb
format: yaml-frontmatter
fields:
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Weight', name: 'weight', widget: 'string' }
- { label: 'Last Review Date', name: 'last_reviewed_on', widget: 'string' }
- { label: 'Next Review Period', name: 'review_in', widget: 'string' }
- { label: 'Body', name: 'body', widget: 'markdown' }
3 changes: 0 additions & 3 deletions source/editor.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ hide_in_navigation: true

<body>
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
<script>
CMS.registerPreviewStyle("manifest.css");
</script>
</body>

</html>

0 comments on commit 4f5e10a

Please sign in to comment.