Giter Site home page Giter Site logo

scribe-docs's Introduction

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 5.x, tag the current ones as 4.x: yarn run docusaurus docs:version 4.x

  • Next, add the 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: 5.x (current)",
        badge: true,
    },
    "4.x": {
      label: "Laravel: 4.x",
      badge: true,
      banner: 'unmaintained',
      path: '/4.x',
    }
    

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

scribe-docs's People

Contributors

shalvah avatar robbieaverill avatar benjamimwalker avatar james2doyle avatar hooman-mirghasemi avatar fullbl avatar alx-sychev avatar aliheydariafshar avatar kristories avatar peterragheb avatar osbre avatar madza91 avatar missaelanda avatar mayocca avatar mattfletcher avatar lucciano-md avatar projectzero4 avatar dam1r89 avatar ccec1t91077 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.