Socket
Book a DemoInstallSign in
Socket

@barkleyrei/doc-site

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@barkleyrei/doc-site

Templated builds for documentation sites.

latest
npmnpm
Version
0.1.7
Version published
Maintainers
0
Created
Source

With just Markdown files (.md), you can have a fully functional documentation site using the magic of Docsify. doc-site has additional logic built on top of it to ensure consistent formatting between BarkleyOKRP development team documentation.

Additionally, doc-site handles some basic template replacements, and logic to translate code files into standalone displays.

Quick Start

doc-site is hosted on NPM for easy installation and runs - https://www.npmjs.com/package/@barkleyrei/doc-site

  • Install doc-site: npm install @barkleyrei/doc-site
  • Initialize doc-site in a folder with your documentation: dsb-init
  • Add GitHub workflow files to auto-deploy to GitHub page on publish: dsb-ghw
  • Build your doc-site: dsb or dsb-build
  • Run your doc-site locally: dsb-serve

Content Building

Root folder's README.md is treated as the "homepage" for the doc-site, so build out some basic information about your project/doc there.

Although not required, a README.md file in nested folders are treated as the landing page for that directory.

A variety of files, based on extensions, will be built out to their own stand-alone page, with formatting, within the doc-site. The following files are supported for this formatting:

  • XML (.xml extensions)
  • Velocity (.vm extensions)
  • PHP (.php extensions)
  • INI (.ini extensions)

doc-site renames some files during build for display within the folder structure. If you want to bypass this, prefix your file with a ~ character. For example, ~.htaccess.

Styling

For styles, refer to the private BarkleyOKRP Identity Repository.

FAQs

Package last updated on 06 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts