-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Our current setup for the (www)packageurl.org website is that we have many documentation files stored in two locations:
purl-spec/docspackageurl.org/website/docs/purl-spec
At any point in time the content of each file should be the same in both locations except that the files in packageurl.org/website/docs/ contain a Docusaurus "header" section that is not present in the purl-spec/docs files. An example of this header is:
id: purl-spec-introduction
title: Introduction
sidebar_label: Introduction
In the current state, the files in purl-spec/docs are the primary files and the corresponding files in packageurl.org/website/docs/ are manually updated to match the text and add/update the header. We need to design a data structure and process to eliminate the manual steps. The primary options seem to be:
- Keep the primary files in the
purl-specrepo and design some CI/CD workflow in Docusaurus to pull the files directly from this location on demand. This would logically require adding the Docusaurus header data to the files in thepurl-specrepo. - Move the primary files to the
packageurl.org repoand maintain them there. In this case we would document their location and how to update them in thepurl-specrepo.
Some key considerations:
- Many contributors are used to viewing and updating the documentation files in the
purl-specrepo and there is some logic to keeping the files there (option 1) because documentation is primary content for a specification. On the other hand for option 2 we can redirect everyone there for documentation files after the website is live. - We want to use the Docusaurus built-in "Edit this page" functionality to take you to the original documentation file (wherever it lives).
- The
packageurl.orgrepo will have many files needed for the website that do not make sense to store in thepurl-specrepo - major examples are the Software Specifications and Tools card grid and the Registered PURL Types grid. Those grids are implemented with MDX files and other JS-oriented artifacts that would be out of place in thepurl-specrepo. There are many other files for the Docusaurus platform. - The
packageurl.orgrepo is JS/React-centric with many files to build the website. Thepurl-spec repohas very little actual code - primarily workflow scripts to generate documentation or indices (e.g. for PURL types) - Whatever we decide to do for the PURL documentation will also apply to the VERS documentation and the
vers-specrepo. - The decision needs discussion/input from the PURL coumunity.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status