Skip to content

Conversation

Copy link

Copilot AI commented Dec 3, 2025

Automates publishing of markdown documentation from docs/ to GitHub Pages when releases are created, replacing manual website management with git-based content control.

Implementation

Workflow (.github/workflows/publish-docs.yml)

  • Triggers on release publication or manual dispatch
  • Converts markdown to HTML using [email protected] (pinned)
  • Deploys via official GitHub Pages actions

Conversion Script (.github/scripts/convert-docs.js)

  • Processes docs/ directory recursively
  • Converts README.mdindex.html, preserves directory structure
  • Copies assets (jpg, png, gif, svg, pdf)
  • Generates responsive HTML with navigation headers
  • Handles relative paths correctly for both root and nested files

Landing Page

  • Creates index.html with cards linking to all documentation sections
  • Embedded styling for professional appearance

Documentation (.github/workflows/README-publish-docs.md)

  • Setup instructions: enable GitHub Pages with "GitHub Actions" source
  • Published URL: https://maslowcnc.github.io/Maslow_4/

Example Output

<!-- docs/assembling-the-arms-4-1/README.md becomes: -->
<html>
  <nav>← Documentation Home | GitHub | Forums</nav>
  <h1>Assembling the Arms 4.1</h1>
  <img src="images/arms-01.jpg" />
  <!-- styled, responsive content -->
</html>

CodeQL scan: 0 vulnerabilities

Original prompt

This section details on the original issue you should resolve

<issue_title>make script to publish from git to web page</issue_title>
<issue_description>in #525 web pages were converted to markdown, with images, in the repo.

Create an action to run when a release is made that will take the markdown pages in the repo and publish them to the web site.

The idea behind this is to convert the website from a stand-alone, manually managed site to have it's contents managed in git and published from here.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add action to publish markdown pages to website Add GitHub Action to publish docs to GitHub Pages on release Dec 3, 2025
Copilot AI requested a review from MaslowBot December 3, 2025 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make script to publish from git to web page

2 participants