From dfb8e2698c050678cfa1b8eb9e9c473194c2212d Mon Sep 17 00:00:00 2001 From: Pilar Solares Date: Thu, 22 Oct 2026 16:04:08 -0700 Subject: [PATCH 01/16] Update content-partner-guide.md Updated workflow clearer steps --- docs/content-partner-guide.md | 174 +++++++++++++++++++++++++--------- 1 file changed, 128 insertions(+), 46 deletions(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index ae81815d..73b651fc 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -1,90 +1,172 @@ # DevHub Content Partner Guide -This guide is for you, if you or your B.C. government team: +Use this guide if your B.C. government team wants to publish technical documentation in DevHub for a product, service, platform or shared component. -- has a component, service, or platform that aims to make the work of developing software applications for the B.C. government better, faster, or more consistent -- has technical documentation that technologist should have access to in order to learn about or use your offering -- would like to publish your documentation in the DevHub alongside documentation for other offerings already in use by technologists working for the B.C. government +!!! note "**Already familiar with the process and ready to get started?**" + Use the [DevHub self-service Wizards](https://developer.gov.bc.ca/create?filters%5Bkind%5D=template&filters%5Buser%5D=all) to create a documentation repository or add existing technical documentation to DevHub. -## What is DevHub? +Contact the Developer Experience (DevX) team through Developer Community Microsoft Team's channel [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) if you get stuck or when your documentation is ready for initial publication. -DevHub is the "landing page for developers" within the B.C. government. It's a work in progress, but we're (we being the [Developer Experience Team](mailto:developer.experience@gov.bc.ca) within the OCIO's Digital office) working to bring together access to as many of the tools, services, and documentation source as possible that technologists need in order to be successful at their jobs of building the next generation of the province's digital services. +## About DevHub -## What kind of documentation lives in DevHub? +DevHub is a central place for B.C. government technologists and developers to find tools, services and technical documentation. It helps them also find the information they need to build, maintain and support digital services. -Documentation in DevHub is technical in nature and helps technologists (developers, DevOps specialists, data scientists, architects, SREs, and more) in their day-to-day work. Business-oriented, non-technical documentation, even if it shares topics with what's in DevHub belongs elsewhere. In parallel to the work we are doing, the [Content Design Team](mailto:do.contentdesign@gov.bc.ca) within the OCIO's Digital Office is working to bring together non-technical documentation in the province's [Digital Government](https://digital.gov.bc.ca) site. +## Write and format your documentation -## How does documentation work in DevHub? +DevHub uses Markdown, a simple text format for writing structured content. Markdown supports headings, links, lists, tables, images and diagrams. -As a small team, we are focused on building the DevHub (and a few other things) but we look to content partners (like you!) for most of the documentation in the site. Since you're the expert about the topics you're documenting, we've designed DevHub and related processes to give you flexibility about how and when your documentation is published within DevHub. There are a few setup steps, which we'll cover below, but after that, you and your team are in control. +DevHub also uses an `mkdocs.yml` configuration file to control your documentation's navigation. The self-service Wizards provide a starting point for your repository configuration. -We work with several content partners who each work on their own timelines, independently of ours for building DevHub. DevHub is designed for this, and once set up, each content partner can work at their own pace for updating their documentation without impacting each other or relying on our team. Similarly, we can work on improving the DevHub on our timelines without affecting our content partner's documentation work. To enable this, content partners each work in their own GitHub repository, and we work in ours. When a content partner has a version of their documentation ready to publish, it gets automatically published into DevHub and is visible to end users instantly. Content partners also have the ability to preview their content prior to it being available on DevHub. +See the [DevHub Content Syntax Guide](../docs/content-syntax-guide.md)for formatting requirements and examples. You can also learn more about Markdown from pages like [Markdown's creator](https://daringfireball.net/projects/markdown/), the Markdown ["cheat sheet"](https://www.markdownguide.org/cheat-sheet/) and [commonmark.org tutorial](https://commonmark.org/help/tutorial/). -Much of the publishing process is enabled through the use of GitHub features, along with an automation component that we have built. The diagram below provides a simple illustration of the overall process, and an explanation of each step follows. +## Choose an editor + +You can edit Markdown files directly in GitHub or use a desktop editor. + +### GitHub web interface + +Use GitHub's web interface to edit files in your repository. This is a simple option for making quick changes without installing additional software. You can edit a file, review your changes and save them to your repository. + +### Desktop code or text editor with Markdown plugin + +You can also use a desktop editor with Markdown support, such as [Visual Studio Code (VS Code)](https://code.visualstudio.com) or [Sublime Text](https://www.sublimetext.com). These editors can help you write and preview Markdown. You will still need to save your changes to GitHub. + +### Dedicated desktop Markdown editor + +You can install a dedicated Markdown editor on your computer to write and edit documentation. + +The list of Markdown editors includes [many options](https://github.com/mundimark/awesome-markdown-editors). We haven't tested them all. We have tried [MacDown](https://macdown.uranusjr.com), a lightweight editor for Mac. + +You will still need to save your files to GitHub. If you're comfortable using terminal commands, you can use a [Git command-line client](https://git-scm.com/downloads). If you prefer a graphical interface, you can use tools such as [GitHub Desktop](https://desktop.github.com) or [GitKraken](https://www.gitkraken.com). + +## See how DevHub displays documentation + +DevHub applies styling to your Markdown content to make it consistent with the B.C. government's visual identity. + +It also provides search and page-level navigation to help readers find information. + +The images below provide an example of how a Markdown snippet in GitHub (first image) is displayed within DevHub (second image). + +![A screenshot of the Mardown source ](images/markdown_source.png) + +![A screenshot of TechDocs-generated documentation displayed within DevHub.](images/devhub_appearance.png) + +## Understand the publishing workflow + +Your team maintains its documentation in its own GitHub repository. The Developer Experience team maintains DevHub and the tools that publish your content. + +You can update your documentation independently without waiting for the Developer Experience team to make changes to DevHub. + +The publishing process works as follows: + +- **Write and edit**: Create or update your documentation in your team's GitHub repository +- **Preview:** Save your files to a preview branch (any branch other than a repo's default/main branch) in GitHub and after a few moments, it will then be available for review on the preview instance: [https://dev.developer.gov.bc.ca](https://dev.developer.gov.bc.ca/) of DevHub. +- **Publish:** Save your approved changes to the main branch to publish them to the live DevHub site +- **Maintain:** Repeat this process whenever you need to update your documentation + +The publishing workflow automatically converts your Markdown files into a format DevHub can display. + +Much of the publishing process is enabled through the use of GitHub features, along with an automation component that we have built. The diagram below provides a simple illustration of the overall process you just read above. ![A diagram of the authoring and publishing process for DevHub. The process is described textually in the paragraph that follows the diagram.](images/devhub_publishing_process_simple.png) -The steps captured in the diagram are as follows: +For those interested in the automated aspect of the process above, it is provided by a purpose-built GitHub "Action" that we have create to simplify things for our content partners, and maintain consistency in the publishing process. It takes care of converting your Markdown content into an HTML format that is compatible with DevHub, packaging it up, and transferring it to a location that DevHub can access it. -- As a documentation writer, you edit or create files that will eventually be published in DevHub in your team's GitHub repository . -- When you want to preview your documentation, you can save your files to a preview branch (any branch other than a repo's default/main branch) in GitHub and after a few moments, it will then be available for review on the [preview instance of DevHub](https://dev.developer.gov.bc.ca). -- Once you're happy with your edits, you'll save your files into your repository's main branch. In this case, after a few moments, your latest documentation will be published and available on the [production DevHub instance](https://developer.gov.bc.ca). -- Each time you have changes or additions to make to your documentation, you iterate through this same process. +The Developer Experience team configures access to the publishing workflow during the initial setup process. See [Create and publish your documentation in DevHub](#create-and-publish-your-documentation-in-devhub) for guidance and details. -For those interested in the automated aspect of the process above, it is provided by a purpose-built GitHub "Action" that we have create to simplify things for our content partners, and maintain consistency in the publishing process. It takes care of converting your Markdown content into an HTML format that is compatible with DevHub, packaging it up, and transferring it to a location that DevHub can access it. Your team will be provided with access to the Action as part of the setup steps described [below](#how-do-we-get-set-up-to-have-our-documentation-published-in-devhub). +## Confirm your content belongs in DevHub -## What format is used for DevHub documentation? +DevHub contains technical documentation that helps technologists use or support a product, service, platform or shared component. Business-oriented and other non-technical content belongs on the [Digital Government](https://digital.gov.bc.ca) website. -DevHub documentation uses the popular Markdown format. Markdown is a simple, text based format that makes writing for the web much easier than using other more complicated formats like HTML. Even though it's simple, Markdown allows writers to use multi-level headings., different text styles, and add tables, images and diagrams. There are many excellent reference on the Internet for writing in Markdown, including the [pages from Markdown's creator](https://daringfireball.net/projects/markdown/), the Markdown ["cheat sheet"](https://www.markdownguide.org/cheat-sheet/), and [this tutorial](https://commonmark.org/help/tutorial/). +## Create and publish your documentation in DevHub -Within DevHub, navigation is driven by a special configuration file called `mkdocs.yml` that is stored in the same GitHub repository as the Markdown files. This file uses the `yml` (pronounced "YAM-EL") format that is slightly more complicated than Markdown, but only infrequently updated. We provide a starter for you and support for working with this file if you need it. +Follow these steps to create your documentation repository, prepare your content and request initial publication. -## What tools can I use to write my documentation? +### Before you start: Adapt existing documentation for DevHub -There are many tools that you can use to write your documentation in Markdown. We provide some examples below. +If your team already has technical documentation, review it before you set up your repository. DevHub uses Markdown and has specific content and formatting requirements. -### GitHub web interface +Use the [DevHub Content Syntax Guide](../docs/content-syntax-guide.md) to identify any changes your existing content needs. If your documentation uses another format, plan how you will convert it to Markdown. If it lives outside GitHub, plan how you will move it into your documentation repository after you create or prepare the repository in Step 1. -The simplest option for editing your Markdown files is to work on them within GitHub's web interface, which provides a way to edit any text file contained in a GitHub repository. Using this approach, you can make quick edits, get a preview, and save the changes back to your repository. +You will make these changes in Step 2. If you are starting new documentation, you can skip this prerequisite. -### Desktop code or text editor with Markdown plugin +### 1. Create or prepare documentation repository -Another way to edit Markdown files is to install a code or text editor on your workstation with plugins for working with Markdown and GitHub. PLugins can help check your syntax and show you a quick preview. Examples of these kinds of tools would be [VS Code](https://code.visualstudio.com) and [Sublime Text](https://www.sublimetext.com), but there are many others. These tools will also help getting your Markdown files into GitHub, but it's not quite as simple as using the GitHub web interface. +Start with the [DevHub self-service Wizards - TechDocs](https://developer.gov.bc.ca/create?filters%5Bkind%5D=template&filters%5Buser%5D=all) -### Dedicated desktop Markdown editor +Choose the Wizard that matches your situation: -One more way to work with Markdown is to install a dedicated Markdown editor on your workstation. There are lots of [options](https://github.com/mundimark/awesome-markdown-editors), but we haven't tried them all. One lightweight option that we have tried for Mac users is [Macdown](https://macdown.uranusjr.com). Using a dedicate Markdown editor, you will usually need a way to get your files stored in GitHub. If you're comfotable with terminal commands, then you can use a [`git` command line client](https://git-scm.com/downloads). If you prefer visual interfaces, tools like [GitHub Desktop](https://desktop.github.com) and [GitKraken](https://www.gitkraken.com) are options. +- **Create a technical documentation repo:** Choose this option if your team needs a new GitHub repository for its technical documentation. The Wizard creates a repository with the required files for DevHub -## What will my documentation look like when it's published? +- **Add existing technical documentation to DevHub:** Choose this option if your technical documentation already lives in a GitHub repository you want to keep using. The Wizard adds the required files to that repository -The appearance of your content is determined by the Markdown syntax you include (headings, text styles, images, etc.) as well as the enhancements and styling provided by DevHub. For example, DevHub will enhance your Markdown with search, and page and document-level navigation. It will also apply styling consistent with B.C. government's visual identity. +Follow the prompts to provide information about your product, service or component, hosting platform, license and repository. -The images below provide an example of how a Markdown snippet in GitHub (first image) is displayed within DevHub (second image). +### 2. Review the information after completing the Wizard -![A screenshot of the Mardown source ](images/markdown_source.png) +After you complete the Wizard: -![A screenshot of TechDocs-generated documentation displayed within DevHub.](images/devhub_appearance.png) +- Open the repository in GitHub +- Review the starter files and instructions +- Check the documentation structure and navigation configuration +- Start adding or updating your technical documentation + +Check the documentation license. DevHub documentation should use the [Creative Commons Attribution 4.0 International license (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/). + +The Wizard adds a license file when it creates a new repository. If you use an existing repository, check that a file named `LICENSE.md` containing the [license text](https://creativecommons.org/licenses/by/4.0/legalcode.txt) is in the repository's root directory. + +If your repository contains both code and documentation under different licenses, add a separate license file for the documentation, such as `LICENSE_DOCS.md`. Update your `README.md` to explain which license applies to each. + +If you have questions about the Wizard or repository setup, contact the Developer Experience team in the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) channel on Microsoft Teams. + +### 3. Prepare your documentation + +Add your technical documentation to the repository in Markdown format. If you already maintain Markdown documentation, check it against the [DevHub Content Syntax Guide](../docs/content-syntax-guide.md). + +If your content uses another format or lives outside GitHub, adapt it before publishing. Organize your files and update the navigation configuration as needed. + +### 4. Coordinate your initial publishing setup + +Contact the Developer Experience team before you merge your first publishing changes into main. Post in the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) channel in Microsoft Teams and include: + +- A link to your GitHub repository +- A brief note that your documentation is ready for initial publishing setup +- A link to your catalog pull request, if you have opened one + +The Developer Experience team needs to grant your repository access to the GitHub secrets used by the publishing workflow. DevX also needs to make sure DevHub has a catalog entry for your documentation. + +#### Add or update your DevHub catalog entry + +The catalog helps DevHub organize information about products, services and documentation. + +1. Open the [Developer Experience team catalog repository](https://github.com/bcgov/developer-experience-team/tree/main/developer-portal/catalog) +2. Review existing entries to find the appropriate file and see how entries are structured +3. Add or update your entry using the repository's format and required fields +4. Open a pull request for your changes, following the repository's contribution process + +Check that the entry identifies your offering and points to the correct documentation. If you are unsure which file to edit or how to submit the change, ask the Developer Experience team for help in the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) channel. + +Finally, wait for the Developer Experience team to confirm that the required GitHub secrets are configured and the catalog setup is ready before you merge your publishing changes into `main`. -## How do we get set up to have our documentation published in DevHub? +### 5. Preview your changes and publish your documentation -The answer is...it depends. If you have existing technical documentation in Markdown format in GitHub, it shouldn't be much work to get it published in DevHub. If you don't have any technical documentation, or it is another format or managed outside GitHub, the path is a bit different and you may have a bit more learning and/or work to do. +Preview your documentation before publishing it. -In general, the process looks like this: +**Preview in DevHub** -1. Set up an overview meeting with [us](mailto:developer.experience@gov.bc.ca). From your team, we suggest including the Product Owner as well as anyone else involved in writing technical documentation for your product or service. It's also helpful to have a technical person from your team who understands the technical tools and processes you're already using. During this meeting, we'll provide an overview of DevHub, answer any questions you have, and talk about next steps (see below). Be prepared to discuss your existing technical documentation, related tools and processes, and what goals you have going forward. -2. Following the overview meeting, we will recommend a working session between ourselves and one or more technical team members to adapt your existing documentation process to one that is compatible with DevHub. The goal of the working session is to get your team comfortable working in a DevHub-compatible workflow, as well as identifying any changes needed to your content in order for it to be publishable in DevHub. -3. After the working session, your team may have some "homework" to adapt content or implement automated tools. The amount of work will depend on that is uncovered in the working session. You can complete these items on your own timeline. -4. Once your "homework" is completed, you can contact us and let us know that you are ready to have an initial version of your documentation published in DevHub. We will complete a small technical "registration" task and your documentation will be available within DevHub shortly afterward. +1. Save your changes to a branch other than main +2. Open the DevHub [preview environment](https://dev.developer.gov.bc.ca/) after the publishing workflow has run +3. Review your content, navigation, links, images and formatting. +Fix any issues you find and preview your changes again -## What license should my content have? +**Preview locally on your computer** -Markdown documentation that is stored in GitHub and will be published in DevHub should have a Creative Commons license. Specifically, the "CC BY" license, which is described in detail on the corresponding [Creative Commons page](https://creativecommons.org/licenses/by/4.0/). A file called "LICENSE.md" containing the [license legal text](https://creativecommons.org/licenses/by/4.0/legalcode.txt) should be stored in the root of your documentation repository alongside your documentation. +You can also preview your documentation locally using the DevHub TechDocs Publish Docker image. This option generates a preview of your documentation and runs a link check before starting a local preview server. -> Our self serve tool will automatically include a license file when you use it create a repository for your documentation. If your documentation is being added to an existing repository, you should ensure that a license file is added. If your repository has both documentation and code, and they are under different licenses, you should have two license files (e.g. LICENSE.md for code and LICENSE_DOCS.md for documentation). You should indicate in your README.md file that the code and documentation are under separate licenses and which license file applies to each. +Review: [How to use the Docker image to preview content locally](https://github.com/bcgov/devhub-techdocs-publish/blob/main/docs/index.md#how-to-use-the-docker-image-to-preview-content-locally) for setup instructions and commands. You can use Docker, Colima or Podman. -## What kinds of modifications are needed to existing technical documentation in Markdown in order to work in DevHub? +Using the preview options allows you see how your documentation would look live on DevHub. This allows you to fix any issues prior publishing. When you're satisfied with the result, merge or save your approved changes to main, following your team's GitHub workflow. -The answer is, again...it depends. In general there is minimal effort required to adapt content for compatibility with DevHub. The [DevHub Content Syntax Guide](content-syntax-guide.md) provides information about the syntax requirements for DevHub content. From 4fd2fc978a2e9850d429d8d91ec6eb8a41681e1f Mon Sep 17 00:00:00 2001 From: Pilar Solares <131301244+Pilargit12@users.noreply.github.com> Date: Wed, 28 Oct 2026 08:55:20 -0700 Subject: [PATCH 02/16] Update docs/content-partner-guide.md Co-authored-by: Monica Granbois --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 73b651fc..4be378b8 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -17,7 +17,7 @@ DevHub uses Markdown, a simple text format for writing structured content. Markd DevHub also uses an `mkdocs.yml` configuration file to control your documentation's navigation. The self-service Wizards provide a starting point for your repository configuration. -See the [DevHub Content Syntax Guide](../docs/content-syntax-guide.md)for formatting requirements and examples. You can also learn more about Markdown from pages like [Markdown's creator](https://daringfireball.net/projects/markdown/), the Markdown ["cheat sheet"](https://www.markdownguide.org/cheat-sheet/) and [commonmark.org tutorial](https://commonmark.org/help/tutorial/). +Refer to the [DevHub Content Syntax Guide](content-syntax-guide.md) for formatting requirements and examples. You can also learn more about Markdown from pages like [Markdown's creator](https://daringfireball.net/projects/markdown/), the Markdown ["cheat sheet"](https://www.markdownguide.org/cheat-sheet/) and [commonmark.org tutorial](https://commonmark.org/help/tutorial/). ## Choose an editor From 6fdea3fe03e76ff88905f722afdba7adfe2f5de3 Mon Sep 17 00:00:00 2001 From: Pilar Solares <131301244+Pilargit12@users.noreply.github.com> Date: Wed, 28 Oct 2026 08:57:44 -0700 Subject: [PATCH 03/16] Update docs/content-partner-guide.md Co-authored-by: Monica Granbois --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 4be378b8..65c208d2 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -60,7 +60,7 @@ You can update your documentation independently without waiting for the Develope The publishing process works as follows: - **Write and edit**: Create or update your documentation in your team's GitHub repository -- **Preview:** Save your files to a preview branch (any branch other than a repo's default/main branch) in GitHub and after a few moments, it will then be available for review on the preview instance: [https://dev.developer.gov.bc.ca](https://dev.developer.gov.bc.ca/) of DevHub. +- **Preview:** Save your files to a preview branch (any branch other than a repo's default/main branch) and create a [pull request](https://docs.github.com/en/pull-requests/reference/pull-requests) in GitHub. After a few moments, it will then be available for review on the preview instance: [https://dev.developer.gov.bc.ca](https://dev.developer.gov.bc.ca/) of DevHub. Note: the PR with the most recent commit will be displayed on the preview site. - **Publish:** Save your approved changes to the main branch to publish them to the live DevHub site - **Maintain:** Repeat this process whenever you need to update your documentation From 87104f9367c7c625bfa075035ac6a498d70b28ea Mon Sep 17 00:00:00 2001 From: Pilar Solares <131301244+Pilargit12@users.noreply.github.com> Date: Wed, 28 Oct 2026 08:58:31 -0700 Subject: [PATCH 04/16] Update docs/content-partner-guide.md Co-authored-by: Monica Granbois --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 65c208d2..a6298404 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -61,7 +61,7 @@ The publishing process works as follows: - **Write and edit**: Create or update your documentation in your team's GitHub repository - **Preview:** Save your files to a preview branch (any branch other than a repo's default/main branch) and create a [pull request](https://docs.github.com/en/pull-requests/reference/pull-requests) in GitHub. After a few moments, it will then be available for review on the preview instance: [https://dev.developer.gov.bc.ca](https://dev.developer.gov.bc.ca/) of DevHub. Note: the PR with the most recent commit will be displayed on the preview site. -- **Publish:** Save your approved changes to the main branch to publish them to the live DevHub site +- **Publish:** Merge your approved pull request to the main branch to publish them to the live DevHub site - **Maintain:** Repeat this process whenever you need to update your documentation The publishing workflow automatically converts your Markdown files into a format DevHub can display. From b6938ce91c961007841256175001fee3e6ef0885 Mon Sep 17 00:00:00 2001 From: Pilar Solares <131301244+Pilargit12@users.noreply.github.com> Date: Wed, 28 Oct 2026 08:58:51 -0700 Subject: [PATCH 05/16] Update docs/content-partner-guide.md Co-authored-by: Monica Granbois --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index a6298404..e49d9218 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -140,7 +140,7 @@ The Developer Experience team needs to grant your repository access to the GitHu The catalog helps DevHub organize information about products, services and documentation. 1. Open the [Developer Experience team catalog repository](https://github.com/bcgov/developer-experience-team/tree/main/developer-portal/catalog) -2. Review existing entries to find the appropriate file and see how entries are structured +2. Review existing entries in the `catalog-seed-[dev|test|prod].yml files to find the appropriate file and see how entries are structured 3. Add or update your entry using the repository's format and required fields 4. Open a pull request for your changes, following the repository's contribution process From 28f71800c200d300f1ba2ece4bc42cf39488ec4b Mon Sep 17 00:00:00 2001 From: Pilar Solares <131301244+Pilargit12@users.noreply.github.com> Date: Wed, 28 Oct 2026 09:17:16 -0700 Subject: [PATCH 06/16] Update docs/content-partner-guide.md Co-authored-by: Monica Granbois --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index e49d9218..ef873888 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -154,7 +154,7 @@ Preview your documentation before publishing it. **Preview in DevHub** -1. Save your changes to a branch other than main +1. Save your changes to a branch other than main and create a pull request 2. Open the DevHub [preview environment](https://dev.developer.gov.bc.ca/) after the publishing workflow has run 3. Review your content, navigation, links, images and formatting. Fix any issues you find and preview your changes again From 51daba2a4a3274120a164b0e52abb3264236361d Mon Sep 17 00:00:00 2001 From: Pilar Solares <131301244+Pilargit12@users.noreply.github.com> Date: Wed, 28 Oct 2026 09:17:26 -0700 Subject: [PATCH 07/16] Update docs/content-partner-guide.md Co-authored-by: Monica Granbois --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index ef873888..46516143 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -155,7 +155,7 @@ Preview your documentation before publishing it. **Preview in DevHub** 1. Save your changes to a branch other than main and create a pull request -2. Open the DevHub [preview environment](https://dev.developer.gov.bc.ca/) after the publishing workflow has run +2. Open the DevHub [preview environment](https://test.developer.gov.bc.ca/) after the publishing workflow has run 3. Review your content, navigation, links, images and formatting. Fix any issues you find and preview your changes again From a57953df3f2d10dcb92a4bde600a17bffaf29ac0 Mon Sep 17 00:00:00 2001 From: Pilar Solares <131301244+Pilargit12@users.noreply.github.com> Date: Wed, 28 Oct 2026 09:17:58 -0700 Subject: [PATCH 08/16] Update docs/content-partner-guide.md Co-authored-by: Monica Granbois --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 46516143..4d8f56fe 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -165,7 +165,7 @@ You can also preview your documentation locally using the DevHub TechDocs Publis Review: [How to use the Docker image to preview content locally](https://github.com/bcgov/devhub-techdocs-publish/blob/main/docs/index.md#how-to-use-the-docker-image-to-preview-content-locally) for setup instructions and commands. You can use Docker, Colima or Podman. -Using the preview options allows you see how your documentation would look live on DevHub. This allows you to fix any issues prior publishing. When you're satisfied with the result, merge or save your approved changes to main, following your team's GitHub workflow. +Using the preview options allows you see how your documentation would look live on DevHub. This allows you to fix any issues prior to publishing. When you're satisfied with the result, commit your changes to a branch and push to GitHub, following your team's GitHub workflow. From 6689b8ee67eca9e5efa2a39dceec1f7a1664ebf7 Mon Sep 17 00:00:00 2001 From: Pilar Solares Date: Wed, 28 Oct 2026 15:36:03 -0700 Subject: [PATCH 09/16] Update content-partner-guide.md Updated mermaid diagram for updated flow and updates suggested in latest comments. --- docs/content-partner-guide.md | 84 ++++++++++++++++++++++++++--------- 1 file changed, 64 insertions(+), 20 deletions(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 4d8f56fe..f615d48e 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -2,7 +2,7 @@ Use this guide if your B.C. government team wants to publish technical documentation in DevHub for a product, service, platform or shared component. -!!! note "**Already familiar with the process and ready to get started?**" +!!! note **Already familiar with the process and ready to get started?** Use the [DevHub self-service Wizards](https://developer.gov.bc.ca/create?filters%5Bkind%5D=template&filters%5Buser%5D=all) to create a documentation repository or add existing technical documentation to DevHub. Contact the Developer Experience (DevX) team through Developer Community Microsoft Team's channel [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) if you get stuck or when your documentation is ready for initial publication. @@ -21,6 +21,8 @@ Refer to the [DevHub Content Syntax Guide](content-syntax-guide.md) for formatti ## Choose an editor +!!! Warning Always verify guidance by the [Appropriate Use Policy](https://www2.gov.bc.ca/gov/content/governments/services-for-government/policies-procedures/appropriate-use-policy) for approved software. + You can edit Markdown files directly in GitHub or use a desktop editor. ### GitHub web interface @@ -29,16 +31,15 @@ Use GitHub's web interface to edit files in your repository. This is a simple op ### Desktop code or text editor with Markdown plugin -You can also use a desktop editor with Markdown support, such as [Visual Studio Code (VS Code)](https://code.visualstudio.com) or [Sublime Text](https://www.sublimetext.com). These editors can help you write and preview Markdown. You will still need to save your changes to GitHub. +You can also use a desktop editor with Markdown support, such as [Visual Studio Code (VS Code)](https://code.visualstudio.com). The editors can help you write and preview Markdown. You will still need to save your changes to GitHub. ### Dedicated desktop Markdown editor -You can install a dedicated Markdown editor on your computer to write and edit documentation. - -The list of Markdown editors includes [many options](https://github.com/mundimark/awesome-markdown-editors). We haven't tested them all. We have tried [MacDown](https://macdown.uranusjr.com), a lightweight editor for Mac. +Where appropriate, you can install a dedicated Markdown editor on your computer to write and edit documentation. -You will still need to save your files to GitHub. If you're comfortable using terminal commands, you can use a [Git command-line client](https://git-scm.com/downloads). If you prefer a graphical interface, you can use tools such as [GitHub Desktop](https://desktop.github.com) or [GitKraken](https://www.gitkraken.com). +The list of Markdown editors includes [many options](https://github.com/mundimark/awesome-markdown-editors) examples include: VSCode, Git CLI and GitHub Desktop. +You will still need to save your files to GitHub. If you're comfortable using terminal commands, you can use a [Git command-line client](https://git-scm.com/downloads). If you prefer a graphical interface, you can use tools such as [GitHub Desktop](https://desktop.github.com), ## See how DevHub displays documentation DevHub applies styling to your Markdown content to make it consistent with the B.C. government's visual identity. @@ -60,19 +61,48 @@ You can update your documentation independently without waiting for the Develope The publishing process works as follows: - **Write and edit**: Create or update your documentation in your team's GitHub repository -- **Preview:** Save your files to a preview branch (any branch other than a repo's default/main branch) and create a [pull request](https://docs.github.com/en/pull-requests/reference/pull-requests) in GitHub. After a few moments, it will then be available for review on the preview instance: [https://dev.developer.gov.bc.ca](https://dev.developer.gov.bc.ca/) of DevHub. Note: the PR with the most recent commit will be displayed on the preview site. +- **Preview:** Save your files to a preview branch (any branch other than a repo's default/main branch) and create a [pull request](https://docs.github.com/en/pull-requests/reference/pull-requests) in GitHub. After a few moments, it will then be available for review on the preview instance: [https://test.developer.gov.bc.ca](https://test.developer.gov.bc.ca/) of DevHub. Note: the PR with the most recent commit will be displayed on the preview site. - **Publish:** Merge your approved pull request to the main branch to publish them to the live DevHub site - **Maintain:** Repeat this process whenever you need to update your documentation The publishing workflow automatically converts your Markdown files into a format DevHub can display. -Much of the publishing process is enabled through the use of GitHub features, along with an automation component that we have built. The diagram below provides a simple illustration of the overall process you just read above. - -![A diagram of the authoring and publishing process for DevHub. The process is described textually in the paragraph that follows the diagram.](images/devhub_publishing_process_simple.png) +Much of the publishing process is enabled through the use of GitHub features, along with an automation component that we have built. The diagram below provides a simple illustration of the overall process. + +```mermaid +flowchart TD + A["Create a repository using the Wizard
or prepare an existing repository"] + B["Review the generated files
and add your documentation"] + C["Update publish.yaml
Set publish: true and uncomment
the required lines"] + D["Contact the Developer Experience team
to coordinate initial setup"] + E["Team grants access to required
GitHub secrets and checks catalog setup"] + F["Create a pull request (PR)
to preview changes"] + G["GitHub Actions builds
and publishes the preview"] + H["Review changes in the
DevHub test environment"] + I{"Are changes ready?"} + J["Merge approved changes
into the main branch"] + K["GitHub Actions builds
and publishes to production"] + L["Documentation is live on DevHub"] + + A --> B --> C --> D --> E --> F --> G --> H --> I + I -->|No| B + I -->|Yes| J --> K --> L + + H -.-> T["TEST
https://test.developer.gov.bc.ca"] + L -.-> P["PRODUCTION
https://developer.gov.bc.ca"] + + classDef setup fill:#f2f2f2,stroke:#666,color:#222 + classDef preview fill:#eaf4ff,stroke:#268bd2,color:#123 + classDef production fill:#eaf7ed,stroke:#399b59,color:#123 + + class A,B,C,D,E setup + class F,G,H,T preview + class I,J,K,L,P production +``` For those interested in the automated aspect of the process above, it is provided by a purpose-built GitHub "Action" that we have create to simplify things for our content partners, and maintain consistency in the publishing process. It takes care of converting your Markdown content into an HTML format that is compatible with DevHub, packaging it up, and transferring it to a location that DevHub can access it. -The Developer Experience team configures access to the publishing workflow during the initial setup process. See [Create and publish your documentation in DevHub](#create-and-publish-your-documentation-in-devhub) for guidance and details. +The Developer Experience team configures access to the publishing workflow during the initial setup process. Refer to the section: [Create and publish your documentation in DevHub](#create-and-publish-your-documentation-in-devhub) for guidance and details. ## Confirm your content belongs in DevHub @@ -102,18 +132,30 @@ Choose the Wizard that matches your situation: Follow the prompts to provide information about your product, service or component, hosting platform, license and repository. -### 2. Review the information after completing the Wizard +### 2. Review the files created by the Wizard + +After completing the Wizard, open your repository and review the files it created. Check the documentation structure and navigation, then start adding or updating your content. + +#### Enable the publishing workflow -After you complete the Wizard: +The Wizard creates a `.github/workflows/publish.yaml` file in your repository. Publishing is disabled by default, so you must update this file before your documentation can appear on the DevHub preview or production site. -- Open the repository in GitHub -- Review the starter files and instructions -- Check the documentation structure and navigation configuration -- Start adding or updating your technical documentation +To enable publishing: -Check the documentation license. DevHub documentation should use the [Creative Commons Attribution 4.0 International license (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/). +1. Open `.github/workflows/publish.yaml in your repository +2. Find the publish: `false` line +3. Change it to publish: `true` +4. Uncomment the lines immediately below it, as indicated in the file -The Wizard adds a license file when it creates a new repository. If you use an existing repository, check that a file named `LICENSE.md` containing the [license text](https://creativecommons.org/licenses/by/4.0/legalcode.txt) is in the repository's root directory. +You can refer to the [publishing workflow template](https://github.com/bcgov/devhub-templates/blob/075fe8d8985f6eccf295db095baa9a0399f55bc8/shared/.github/workflows/publish.yaml#L33) for guidance. This link points to the template used by the Wizard. **Make these changes in your own repository's copy of `publish.yaml`, not the template.** + +The Developer Experience team (DevX) must also grant your repository access to the GitHub secrets required for publishing. Contact the team in the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) Microsoft Teams channel to coordinate the initial set up. Your documentation will not publish until the workflow is enabled and the required access is configured. + +#### Check the documentation licence + +The Wizard adds a `LICENSE.md` file with the [Creative Commons Attribution 4.0 International license (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) when it creates a new repository. + +If you are adding documenation to an existing repository, check that its root directory contains a `LICENSE.md` containing the [license text](https://creativecommons.org/licenses/by/4.0/legalcode.txt). If your repository contains both code and documentation under different licenses, add a separate license file for the documentation, such as `LICENSE_DOCS.md`. Update your `README.md` to explain which license applies to each. @@ -165,7 +207,9 @@ You can also preview your documentation locally using the DevHub TechDocs Publis Review: [How to use the Docker image to preview content locally](https://github.com/bcgov/devhub-techdocs-publish/blob/main/docs/index.md#how-to-use-the-docker-image-to-preview-content-locally) for setup instructions and commands. You can use Docker, Colima or Podman. -Using the preview options allows you see how your documentation would look live on DevHub. This allows you to fix any issues prior to publishing. When you're satisfied with the result, commit your changes to a branch and push to GitHub, following your team's GitHub workflow. +Using the preview options allows you see how your documentation would look live on DevHub. This allows you to fix any issues prior to publishing. + +When you're satisfied with the result, commit your changes to a branch and push to GitHub, following your team's GitHub workflow. From c28420d5062ab7e0295adf5e3c12ad08ddebfe65 Mon Sep 17 00:00:00 2001 From: Monica Granbois Date: Thu, 29 Oct 2026 13:09:56 -0700 Subject: [PATCH 10/16] Update docs/content-partner-guide.md --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index f615d48e..906d21dc 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -116,7 +116,7 @@ Follow these steps to create your documentation repository, prepare your content If your team already has technical documentation, review it before you set up your repository. DevHub uses Markdown and has specific content and formatting requirements. -Use the [DevHub Content Syntax Guide](../docs/content-syntax-guide.md) to identify any changes your existing content needs. If your documentation uses another format, plan how you will convert it to Markdown. If it lives outside GitHub, plan how you will move it into your documentation repository after you create or prepare the repository in Step 1. +Use the [DevHub Content Syntax Guide](content-syntax-guide.md) to identify any changes your existing content needs. If your documentation uses another format, plan how you will convert it to Markdown. If it lives outside GitHub, plan how you will move it into your documentation repository after you create or prepare the repository in Step 1. You will make these changes in Step 2. If you are starting new documentation, you can skip this prerequisite. From 98643ca30a03aaedf5aff2bbf7a469502d3792d8 Mon Sep 17 00:00:00 2001 From: Monica Granbois Date: Thu, 29 Oct 2026 13:10:10 -0700 Subject: [PATCH 11/16] Update docs/content-partner-guide.md --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 906d21dc..6578c190 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -163,7 +163,7 @@ If you have questions about the Wizard or repository setup, contact the Develope ### 3. Prepare your documentation -Add your technical documentation to the repository in Markdown format. If you already maintain Markdown documentation, check it against the [DevHub Content Syntax Guide](../docs/content-syntax-guide.md). +Add your technical documentation to the repository in Markdown format. If you already maintain Markdown documentation, check it against the [DevHub Content Syntax Guide](content-syntax-guide.md). If your content uses another format or lives outside GitHub, adapt it before publishing. Organize your files and update the navigation configuration as needed. From bd7f52b4b7a853011d239f3030f40080b53c10f5 Mon Sep 17 00:00:00 2001 From: Monica Granbois Date: Thu, 29 Oct 2026 14:18:22 -0700 Subject: [PATCH 12/16] fix admonition formatting --- docs/content-partner-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 6578c190..5705cdbd 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -2,7 +2,7 @@ Use this guide if your B.C. government team wants to publish technical documentation in DevHub for a product, service, platform or shared component. -!!! note **Already familiar with the process and ready to get started?** +!!! note "Already familiar with the process and ready to get started?" Use the [DevHub self-service Wizards](https://developer.gov.bc.ca/create?filters%5Bkind%5D=template&filters%5Buser%5D=all) to create a documentation repository or add existing technical documentation to DevHub. Contact the Developer Experience (DevX) team through Developer Community Microsoft Team's channel [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) if you get stuck or when your documentation is ready for initial publication. @@ -21,7 +21,7 @@ Refer to the [DevHub Content Syntax Guide](content-syntax-guide.md) for formatti ## Choose an editor -!!! Warning Always verify guidance by the [Appropriate Use Policy](https://www2.gov.bc.ca/gov/content/governments/services-for-government/policies-procedures/appropriate-use-policy) for approved software. +!!! Warning "Always verify guidance by the [Appropriate Use Policy](https://www2.gov.bc.ca/gov/content/governments/services-for-government/policies-procedures/appropriate-use-policy) for approved software." You can edit Markdown files directly in GitHub or use a desktop editor. From ae0b92cbfcd98e3aa8b61ffd7593bf5cc18b8b67 Mon Sep 17 00:00:00 2001 From: Pilar Solares Date: Thu, 29 Oct 2026 16:14:13 -0700 Subject: [PATCH 13/16] Update content-partner-guide.md Separated diagrams for better understanding from initial set up and maintenance of the techdocs thereafter. Corrected previous comments as well. --- docs/content-partner-guide.md | 100 ++++++++++++++++++++-------------- 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 5705cdbd..3fe72460 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -39,7 +39,8 @@ Where appropriate, you can install a dedicated Markdown editor on your computer The list of Markdown editors includes [many options](https://github.com/mundimark/awesome-markdown-editors) examples include: VSCode, Git CLI and GitHub Desktop. -You will still need to save your files to GitHub. If you're comfortable using terminal commands, you can use a [Git command-line client](https://git-scm.com/downloads). If you prefer a graphical interface, you can use tools such as [GitHub Desktop](https://desktop.github.com), +You will still need to save your files to GitHub. If you're comfortable using terminal commands, you can use a [Git command-line client](https://git-scm.com/downloads). If you prefer a graphical interface, you can use tools such as [GitHub Desktop](https://desktop.github.com). + ## See how DevHub displays documentation DevHub applies styling to your Markdown content to make it consistent with the B.C. government's visual identity. @@ -54,51 +55,17 @@ The images below provide an example of how a Markdown snippet in GitHub (first i ## Understand the publishing workflow -Your team maintains its documentation in its own GitHub repository. The Developer Experience team maintains DevHub and the tools that publish your content. +Your team maintains its documentation in its own GitHub repository. The Developer Experience (DevX) team maintains DevHub and the tools that publish your content. -You can update your documentation independently without waiting for the Developer Experience team to make changes to DevHub. +Once your repository is configured for publishing, you can update your documentation independently without waiting for DevX to make changes. -The publishing process works as follows: +The publishing process has 3 main steps: - **Write and edit**: Create or update your documentation in your team's GitHub repository - **Preview:** Save your files to a preview branch (any branch other than a repo's default/main branch) and create a [pull request](https://docs.github.com/en/pull-requests/reference/pull-requests) in GitHub. After a few moments, it will then be available for review on the preview instance: [https://test.developer.gov.bc.ca](https://test.developer.gov.bc.ca/) of DevHub. Note: the PR with the most recent commit will be displayed on the preview site. - **Publish:** Merge your approved pull request to the main branch to publish them to the live DevHub site -- **Maintain:** Repeat this process whenever you need to update your documentation - -The publishing workflow automatically converts your Markdown files into a format DevHub can display. -Much of the publishing process is enabled through the use of GitHub features, along with an automation component that we have built. The diagram below provides a simple illustration of the overall process. - -```mermaid -flowchart TD - A["Create a repository using the Wizard
or prepare an existing repository"] - B["Review the generated files
and add your documentation"] - C["Update publish.yaml
Set publish: true and uncomment
the required lines"] - D["Contact the Developer Experience team
to coordinate initial setup"] - E["Team grants access to required
GitHub secrets and checks catalog setup"] - F["Create a pull request (PR)
to preview changes"] - G["GitHub Actions builds
and publishes the preview"] - H["Review changes in the
DevHub test environment"] - I{"Are changes ready?"} - J["Merge approved changes
into the main branch"] - K["GitHub Actions builds
and publishes to production"] - L["Documentation is live on DevHub"] - - A --> B --> C --> D --> E --> F --> G --> H --> I - I -->|No| B - I -->|Yes| J --> K --> L - - H -.-> T["TEST
https://test.developer.gov.bc.ca"] - L -.-> P["PRODUCTION
https://developer.gov.bc.ca"] - - classDef setup fill:#f2f2f2,stroke:#666,color:#222 - classDef preview fill:#eaf4ff,stroke:#268bd2,color:#123 - classDef production fill:#eaf7ed,stroke:#399b59,color:#123 - - class A,B,C,D,E setup - class F,G,H,T preview - class I,J,K,L,P production -``` +The following sections explain how to set up your repository and publish your documentation for the first time. For those interested in the automated aspect of the process above, it is provided by a purpose-built GitHub "Action" that we have create to simplify things for our content partners, and maintain consistency in the publishing process. It takes care of converting your Markdown content into an HTML format that is compatible with DevHub, packaging it up, and transferring it to a location that DevHub can access it. @@ -142,7 +109,7 @@ The Wizard creates a `.github/workflows/publish.yaml` file in your repository. P To enable publishing: -1. Open `.github/workflows/publish.yaml in your repository +1. Open `.github/workflows/publish.yaml` in your repository 2. Find the publish: `false` line 3. Change it to publish: `true` 4. Uncomment the lines immediately below it, as indicated in the file @@ -169,13 +136,37 @@ If your content uses another format or lives outside GitHub, adapt it before pub ### 4. Coordinate your initial publishing setup -Contact the Developer Experience team before you merge your first publishing changes into main. Post in the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) channel in Microsoft Teams and include: +#### Initial setup at a glance + +Complete these steps before publishing your documentation for the first time. You only need to coordinate the initial setup once per repository unless changes to the configuration are needed later. + +```mermaid +flowchart TD + A["Complete Steps 1–3
Prepare your repository and documentation"] --> B["Enable publishing in publish.yaml
See Step 2"] + B --> C["Create or update your
DevHub catalog entry"] + C --> D["Contact DevX in the
DevHub-howto Teams channel"] + D --> E["DevX grants access to required
GitHub secrets and checks catalog setup"] + E --> F["Wait for DevX to confirm
initial setup is ready"] + F --> G["Ready to preview and publish
your documentation"] + + classDef preparation fill:#f2f2f2,stroke:#666,color:#222 + classDef coordination fill:#fff1db,stroke:#c58b32,color:#222 + classDef ready fill:#eaf7ed,stroke:#399b59,color:#123 + + class A,B,C preparation + class D,E,F coordination + class G ready +``` + +Before merging your first publishing changes into main, contact the Developer Experience (DevX) team through the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) channel in Microsoft Teams and include: - A link to your GitHub repository - A brief note that your documentation is ready for initial publishing setup - A link to your catalog pull request, if you have opened one -The Developer Experience team needs to grant your repository access to the GitHub secrets used by the publishing workflow. DevX also needs to make sure DevHub has a catalog entry for your documentation. +DevX must grant your repository access to the GitHub secrets required by the publishing workflow. The team also needs to confirm that the DevHub catalog entry is ready. + +Wait for DevX to confirm that the required access and catalog setup are ready before merging your initial publishing changes into main. #### Add or update your DevHub catalog entry @@ -211,8 +202,33 @@ Using the preview options allows you see how your documentation would look live When you're satisfied with the result, commit your changes to a branch and push to GitHub, following your team's GitHub workflow. +This diagram shows the recurring process after your repository has been configured for publishing. + +```mermaid +flowchart TD + A["Edit documentation
in your repository"] --> B["Create a pull request (PR)
to preview your changes"] + B --> C["GitHub Actions builds
and publishes the preview"] + C --> D["Review changes in the
DevHub test environment"] + D --> E{"Are the changes ready?"} + + E -->|No| F["Make corrections
in your repository"] + F --> B + + E -->|Yes| G["Merge the approved changes
into the main branch"] + G --> H["GitHub Actions builds
and publishes to production"] + H --> I["Changes are live on DevHub"] + + D -.-> J["TEST
https://test.developer.gov.bc.ca"] + I -.-> K["PRODUCTION
https://developer.gov.bc.ca"] + classDef author fill:#f2f2f2,stroke:#666,color:#222 + classDef preview fill:#eaf4ff,stroke:#268bd2,color:#123 + classDef production fill:#eaf7ed,stroke:#399b59,color:#123 + class A,F author + class B,C,D,J preview + class E,G,H,I,K production +``` From 45ca0e6a11c1383d7a1842406ae4910ee7d85cd9 Mon Sep 17 00:00:00 2001 From: Pilar Solares Date: Fri, 30 Oct 2026 14:46:14 -0700 Subject: [PATCH 14/16] Update content-partner-guide.md Updated techdoc to include request form on Jira, but also allow questions in the team's channel. Explained both uses. --- docs/content-partner-guide.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 3fe72460..5031affa 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -5,7 +5,10 @@ Use this guide if your B.C. government team wants to publish technical documenta !!! note "Already familiar with the process and ready to get started?" Use the [DevHub self-service Wizards](https://developer.gov.bc.ca/create?filters%5Bkind%5D=template&filters%5Buser%5D=all) to create a documentation repository or add existing technical documentation to DevHub. -Contact the Developer Experience (DevX) team through Developer Community Microsoft Team's channel [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) if you get stuck or when your documentation is ready for initial publication. +- Contact the Developer Experience (DevX) team through Developer Community Microsoft Team's channel [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) if you get stuck + +Or +- [Create a request ticket](https://citz-do.atlassian.net/servicedesk/customer/portal/2/group/9/create/764) when your documentation is ready for initial publication or you need changes to an existing publishing configuration ## About DevHub @@ -49,7 +52,7 @@ It also provides search and page-level navigation to help readers find informati The images below provide an example of how a Markdown snippet in GitHub (first image) is displayed within DevHub (second image). -![A screenshot of the Mardown source ](images/markdown_source.png) +![A screenshot of the Markdown source ](images/markdown_source.png) ![A screenshot of TechDocs-generated documentation displayed within DevHub.](images/devhub_appearance.png) @@ -73,7 +76,7 @@ The Developer Experience team configures access to the publishing workflow durin ## Confirm your content belongs in DevHub -DevHub contains technical documentation that helps technologists use or support a product, service, platform or shared component. Business-oriented and other non-technical content belongs on the [Digital Government](https://digital.gov.bc.ca) website. +DevHub contains technical documentation that helps technologists use or support a product, service, platform or shared component. Business-oriented and other non-technical content belongs on the [Connected Services BC](https://digital.gov.bc.ca) website. ## Create and publish your documentation in DevHub @@ -116,7 +119,7 @@ To enable publishing: You can refer to the [publishing workflow template](https://github.com/bcgov/devhub-templates/blob/075fe8d8985f6eccf295db095baa9a0399f55bc8/shared/.github/workflows/publish.yaml#L33) for guidance. This link points to the template used by the Wizard. **Make these changes in your own repository's copy of `publish.yaml`, not the template.** -The Developer Experience team (DevX) must also grant your repository access to the GitHub secrets required for publishing. Contact the team in the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) Microsoft Teams channel to coordinate the initial set up. Your documentation will not publish until the workflow is enabled and the required access is configured. +The Developer Experience team (DevX) must also grant your repository access to the GitHub secrets required for publishing. Your documentation will not publish until the workflow is enabled and the required access is configured. More on this in [Step 4](#4-coordinate-your-initial-publishing-setup). #### Check the documentation licence @@ -126,8 +129,6 @@ If you are adding documenation to an existing repository, check that its root di If your repository contains both code and documentation under different licenses, add a separate license file for the documentation, such as `LICENSE_DOCS.md`. Update your `README.md` to explain which license applies to each. -If you have questions about the Wizard or repository setup, contact the Developer Experience team in the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) channel on Microsoft Teams. - ### 3. Prepare your documentation Add your technical documentation to the repository in Markdown format. If you already maintain Markdown documentation, check it against the [DevHub Content Syntax Guide](content-syntax-guide.md). @@ -158,11 +159,10 @@ flowchart TD class G ready ``` -Before merging your first publishing changes into main, contact the Developer Experience (DevX) team through the [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) channel in Microsoft Teams and include: +[Create a service request](https://citz-do.atlassian.net/servicedesk/customer/portal/2/create/764) to coordinate the initial set up. You will need: -- A link to your GitHub repository +- A link to your GitHub repository URL - A brief note that your documentation is ready for initial publishing setup -- A link to your catalog pull request, if you have opened one DevX must grant your repository access to the GitHub secrets required by the publishing workflow. The team also needs to confirm that the DevHub catalog entry is ready. From d8f587a233d8998d3b43dd87748dc95a233475f5 Mon Sep 17 00:00:00 2001 From: Pilar Solares Date: Mon, 2 Nov 2026 10:49:07 -0700 Subject: [PATCH 15/16] Update content-partner-guide.md Updates from last comments --- docs/content-partner-guide.md | 58 ++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 5031affa..5e49ccfe 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -5,10 +5,12 @@ Use this guide if your B.C. government team wants to publish technical documenta !!! note "Already familiar with the process and ready to get started?" Use the [DevHub self-service Wizards](https://developer.gov.bc.ca/create?filters%5Bkind%5D=template&filters%5Buser%5D=all) to create a documentation repository or add existing technical documentation to DevHub. -- Contact the Developer Experience (DevX) team through Developer Community Microsoft Team's channel [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) if you get stuck -Or -- [Create a request ticket](https://citz-do.atlassian.net/servicedesk/customer/portal/2/group/9/create/764) when your documentation is ready for initial publication or you need changes to an existing publishing configuration +- Contact the Developer Experience (DevX) team through Developer Community Microsoft Team's channel [DevHub-howto](https://teams.microsoft.com/l/channel/19%3Acd0757bed1244bd5ac6aa90943828077%40thread.tacv2/DevHub-howto?groupId=a80418da-c27b-406e-89ab-7695b61924d8&tenantId=6fdb5200-3d0d-4a8a-b036-d3685e359adc) if you get stuck + +Or + +- You can [create a request ticket](https://citz-do.atlassian.net/servicedesk/customer/portal/2/group/9/create/764) when your documentation is ready for initial publication or you need changes to an existing publishing configuration ## About DevHub @@ -38,9 +40,7 @@ You can also use a desktop editor with Markdown support, such as [Visual Studio ### Dedicated desktop Markdown editor -Where appropriate, you can install a dedicated Markdown editor on your computer to write and edit documentation. - -The list of Markdown editors includes [many options](https://github.com/mundimark/awesome-markdown-editors) examples include: VSCode, Git CLI and GitHub Desktop. +Where appropriate, you can install a dedicated Markdown editor on your computer to write and edit documentation. The list of Markdown editors includes [many options](https://github.com/mundimark/awesome-markdown-editors). You will still need to save your files to GitHub. If you're comfortable using terminal commands, you can use a [Git command-line client](https://git-scm.com/downloads). If you prefer a graphical interface, you can use tools such as [GitHub Desktop](https://desktop.github.com). @@ -125,7 +125,7 @@ The Developer Experience team (DevX) must also grant your repository access to t The Wizard adds a `LICENSE.md` file with the [Creative Commons Attribution 4.0 International license (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/) when it creates a new repository. -If you are adding documenation to an existing repository, check that its root directory contains a `LICENSE.md` containing the [license text](https://creativecommons.org/licenses/by/4.0/legalcode.txt). +If you are adding documentation to an existing repository, check that its root directory contains a `LICENSE.md` containing the [license text](https://creativecommons.org/licenses/by/4.0/legalcode.txt). If your repository contains both code and documentation under different licenses, add a separate license file for the documentation, such as `LICENSE_DOCS.md`. Update your `README.md` to explain which license applies to each. @@ -141,11 +141,23 @@ If your content uses another format or lives outside GitHub, adapt it before pub Complete these steps before publishing your documentation for the first time. You only need to coordinate the initial setup once per repository unless changes to the configuration are needed later. +[Create a service request](https://citz-do.atlassian.net/servicedesk/customer/portal/2/create/764) to coordinate the initial set up. You will need: + +- A link to your GitHub repository URL +- A brief note that your documentation is ready for initial publishing setup + +DevX must grant your repository access to the GitHub secrets required by the publishing workflow. The team also needs to confirm that the DevHub catalog entry is ready. + +Wait for DevX to confirm that the required access and catalog setup are ready before merging your initial publishing changes into main. + +!!! info "The diagram shows your first publishing process". + After this initial publishing, the following ones will no longer need to contact the DevX team or create a new request ticket. More on this in [Step 5](#5-preview-your-changes-and-publish-your-documentation) + ```mermaid flowchart TD A["Complete Steps 1–3
Prepare your repository and documentation"] --> B["Enable publishing in publish.yaml
See Step 2"] B --> C["Create or update your
DevHub catalog entry"] - C --> D["Contact DevX in the
DevHub-howto Teams channel"] + C --> D["Contact DevX
Create a request ticket"] D --> E["DevX grants access to required
GitHub secrets and checks catalog setup"] E --> F["Wait for DevX to confirm
initial setup is ready"] F --> G["Ready to preview and publish
your documentation"] @@ -157,23 +169,16 @@ flowchart TD class A,B,C preparation class D,E,F coordination class G ready -``` - -[Create a service request](https://citz-do.atlassian.net/servicedesk/customer/portal/2/create/764) to coordinate the initial set up. You will need: - -- A link to your GitHub repository URL -- A brief note that your documentation is ready for initial publishing setup - -DevX must grant your repository access to the GitHub secrets required by the publishing workflow. The team also needs to confirm that the DevHub catalog entry is ready. -Wait for DevX to confirm that the required access and catalog setup are ready before merging your initial publishing changes into main. + click D "https://citz-do.atlassian.net/servicedesk/customer/portal/2/group/9/create/764" "Create a TechDocs setup request" _blank +``` #### Add or update your DevHub catalog entry The catalog helps DevHub organize information about products, services and documentation. 1. Open the [Developer Experience team catalog repository](https://github.com/bcgov/developer-experience-team/tree/main/developer-portal/catalog) -2. Review existing entries in the `catalog-seed-[dev|test|prod].yml files to find the appropriate file and see how entries are structured +2. Review existing entries in the `catalog-seed-[dev|test|prod].yml` files to find the appropriate file and see how entries are structured 3. Add or update your entry using the repository's format and required fields 4. Open a pull request for your changes, following the repository's contribution process @@ -192,17 +197,17 @@ Preview your documentation before publishing it. 3. Review your content, navigation, links, images and formatting. Fix any issues you find and preview your changes again -**Preview locally on your computer** +**Optional: Preview locally on your computer** -You can also preview your documentation locally using the DevHub TechDocs Publish Docker image. This option generates a preview of your documentation and runs a link check before starting a local preview server. +You can preview your documentation locally using the DevHub TechDocs Publish Docker image. This option generates a preview of your documentation and runs a link check before starting a local preview server. Review: [How to use the Docker image to preview content locally](https://github.com/bcgov/devhub-techdocs-publish/blob/main/docs/index.md#how-to-use-the-docker-image-to-preview-content-locally) for setup instructions and commands. You can use Docker, Colima or Podman. -Using the preview options allows you see how your documentation would look live on DevHub. This allows you to fix any issues prior to publishing. +Local preview is optional. We strongly recommend previewing your changes in the DevHub test environment before publishing. Local previews may not render all content the same way as DevHub. For example, Mermaid diagrams and clickable links may not work as expected locally. -When you're satisfied with the result, commit your changes to a branch and push to GitHub, following your team's GitHub workflow. +Once you're satisfied with the preview, follow your team's GitHub workflow to merge the approved changes into the `main branch` and publish your documentation. -This diagram shows the recurring process after your repository has been configured for publishing. +!!! info "This diagram shows the recurring or maintenance process after your repository has been configured for publishing." ```mermaid flowchart TD @@ -218,8 +223,8 @@ flowchart TD G --> H["GitHub Actions builds
and publishes to production"] H --> I["Changes are live on DevHub"] - D -.-> J["TEST
https://test.developer.gov.bc.ca"] - I -.-> K["PRODUCTION
https://developer.gov.bc.ca"] + D -.-> J["TEST
test.developer.gov.bc.ca"] + I -.-> K["PRODUCTION
developer.gov.bc.ca"] classDef author fill:#f2f2f2,stroke:#666,color:#222 classDef preview fill:#eaf4ff,stroke:#268bd2,color:#123 @@ -228,6 +233,9 @@ flowchart TD class A,F author class B,C,D,J preview class E,G,H,I,K production + + click J "https://test.developer.gov.bc.ca" "Open DevHub test environment" _blank + click K "https://developer.gov.bc.ca" "Open DevHub production site" _blank ``` From 9706acda5af798449bfe744135d86c040bd95e7a Mon Sep 17 00:00:00 2001 From: Monica Granbois Date: Mon, 2 Nov 2026 11:21:44 -0700 Subject: [PATCH 16/16] Fix admonition formatting --- docs/content-partner-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content-partner-guide.md b/docs/content-partner-guide.md index 5e49ccfe..97c0c1e7 100644 --- a/docs/content-partner-guide.md +++ b/docs/content-partner-guide.md @@ -150,7 +150,7 @@ DevX must grant your repository access to the GitHub secrets required by the pub Wait for DevX to confirm that the required access and catalog setup are ready before merging your initial publishing changes into main. -!!! info "The diagram shows your first publishing process". +!!! info "The diagram shows your first publishing process." After this initial publishing, the following ones will no longer need to contact the DevX team or create a new request ticket. More on this in [Step 5](#5-preview-your-changes-and-publish-your-documentation) ```mermaid