Skip to content

knuckleswtf/scribe-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b16e42e · Mar 12, 2025
Feb 19, 2025
Mar 12, 2025
Feb 19, 2025
Feb 18, 2025
Dec 10, 2023
Jan 19, 2025
Jun 7, 2021
Feb 21, 2022
Feb 18, 2025
Feb 18, 2025
May 25, 2021
Feb 18, 2025
Feb 18, 2025
Jan 19, 2025
Jun 4, 2021
Jun 4, 2021
Jan 19, 2025

Repository files navigation

scribe-docs

Documentation repo for Scribe. Built using Docusaurus 2.

Requirements

  • Node.js 12+
  • npm or Yarn (Ideally, Yarn, but npm works too.)

Installation

yarn install

Local Development

yarn start starts a local development server on http://localhost:3000 and opens up a browser window. Most changes are reflected live without having to restart the server.

Note that the search bar won't be shown at all in local dev mode.

Build

yarn build creates a production build in the build directory, which can then be served on localhost:3000 with yarn serve.

Deployment

The site is currently deployed to scribe.knuckles.wtf via Render. The site will build and auto-deploy on push to any branch in the repo.

Editing

Docs are Markdown files, located within laravel/ and nodejs/. Images and assets go in static/. A few custom React components, styles and pages are in src/.

Releasing a new version

-First, pin the current docs as the old version. For example, to create docs for 6.x, tag the current ones as 5.x: yarn run docusaurus docs:version:laravel 5.x

  • Next, add the new version to the laravelVersionDropdown in docusaurus.config.js.

  • Finally, update the versions key for the @docusaurus/preset-classic section in docusaurus.config.js, to look something like this:

    current: {
        label: "Laravel: 6.x (current)",
        badge: true,
    },
    "4.x": {
      label: "Laravel: 5.x",
      badge: true,
      banner: 'unmaintained',
      path: '/5.x',
    }
    

Done! Now the docs for v5 will be in /laravel, and those for v5 will be in laravel_versioned_docs/version-5.x.