Skip to content

feat(docs): Add "Copy as Markdown" button for documentation pages #606

Description

@BittuBarnwal7479

Clear and concise description of the problem

As a user using Gunshi, I want to copy the current documentation page as Markdown so that I can easily share it with AI coding assistants, save notes, or reuse the documentation without manually selecting and formatting the content.

I'd be happy to work on this feature and submit a PR if it's accepted.

Suggested solution

Add a "Copy as Markdown" button near the page title (or in the page actions), similar to the implementation used in the other org documentation.

When clicked, it should copy the current page as well-formatted Markdown, preserving elements such as:

Headings
Paragraphs
Lists
Code blocks
Links
Tables (where applicable)

This would make it easy to paste the documentation into GitHub, Markdown editors, or AI assistants without losing formatting.

Alternative

Users can manually copy the page, but this is slower and often loses Markdown formatting, especially for longer pages with code examples.

Additional context

The Other open source org documentation provides a "Copy as Markdown" button that copies the current page in Markdown format, making it convenient to share documentation with AI tools and note-taking applications.

Validations

  • Read the Contributing Guide.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIncludes new features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions