Files
Docs-Viewer/README.md

1.4 KiB

Getting Started

Prerequisites

  • Node.js and npm (only needed for development)

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
    
  2. Install dependencies (only needed for development):

    npm install
    

Deployment

This is a static website that can be hosted on any web server or static hosting service. Simply upload all files to your hosting provider.

For local testing, you can use any static file server. For example:

npx live-server

Usage

  • The file index is displayed on the left sidebar.
  • Click on a file to load its content.
  • The document outline is displayed on the right sidebar.
  • Use the menu button to toggle the sidebar on mobile devices.

Adding New Documents

  1. Add your Markdown file to the directory.

  2. Update to include the new document:

    {
        "documents": [
            {
                "title": "Blueprint Depth Trace",
                "path": "docs/Blueprint Penetration Trace.md"
            },
            {
                "title": "New Document Title",
                "path": "docs/NewDocument.md"
            }
        ]
    }
    

Acknowledgements

  • marked for Markdown parsing.
  • Prism for syntax highlighting.

License

This project is licensed under the MIT License.