Coder Social home page Coder Social logo

gracebohl / handbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sourcegraph/handbook

0.0 0.0 0.0 13.3 MB

πŸ“˜ The new Sourcegraph handbook

Home Page: https://handbook.sourcegraph.com

License: Apache License 2.0

JavaScript 19.84% TypeScript 55.12% PowerShell 2.95% SCSS 22.09%

handbook's Introduction

πŸ“˜ Sourcegraph handbook Netlify Status

The Sourcegraph handbook describes how we (Sourcegraph teammates) work. It’s publicly visible because we are an open company.

The handbook is a living document and we expect every teammate to propose improvements, changes, additions, and fixes to keep it continuously up-to-date and accurate.

All content is in Markdown files under the πŸ“ content folder.

Run locally

You need NodeJS and Yarn installed. How to do so can vary from machine to machine, but as an example on Ubuntu 20.04:

  1. Install nvm from https://github.com/nvm-sh/nvm
  2. Run nvm install from the current directory
  3. Run npm install -g yarn from the current directory

Install dependencies:

yarn

Then start the handbook:

yarn dev

Autogenerated content

There are special tokens within some markdown pages ({{generator:*}}) that are filled at build time from the YAML files in the data folder. The code which does this the filling is in [src/lib/generatedMarkdown.ts], and these are called as part of the markdown pipeline in src/lib/markdownToHtml.ts.

Check links locally

We use markdown-link-check for link checking at build time in the link-check GitHub action. If you want to run it locally, from the root of the repository you can run this command:

yarn check-links

This can be slow, so you can also check a single file by running this command, replacing path_to_file with the file you want to validate:

yarn markdown-link-check <path_to_file>

Note that this will also check external links, which the GitHub action ignores. If you wish to ignore those, add -c .github/workflows/link-check-internal.json to the command.

Build

During deployment, the netlify-build script gets executed. To simulate the build process, you can run it locally:

yarn netlify-build

The output will be in the out directory.

Deployment to production

The repository is configured to automatically deploy the main branch to production on Netlify.

handbook's People

Contributors

nicksnyder avatar sqs avatar felixfbecker avatar virginiaulrich avatar mercadon avatar carlyj0nes avatar dadlerj avatar kmorris50 avatar inesroitman avatar withdavidli avatar joelkw avatar bobheadxi avatar marybelzer avatar slimsag avatar cassiemelani avatar daxmc99 avatar rvantonder avatar abschu avatar pecigonzalo avatar fabicastp avatar malomarrec avatar devoncoords avatar aileenrose avatar joekirschersg avatar dan-mckean avatar mjgmuldez avatar emchap avatar serinadawn avatar rebeccadee avatar chayim 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.