Giter Club home page Giter Club logo

contributing-docs's Introduction

Bitwarden Contributing Docs

This repository contains the code for the Bitwarden contributing docs site. The site is built using Docusaurus which is a static website generator. The latest version of the documentation is available at https://contributing.bitwarden.com/.

Install

npm ci

Local Development

npm start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

npm build

This command generates static content into the build directory and can be served using any static contents hosting service.

Writing

The documentation is written in Markdown and can be found in the docs directory. The docs directory consists of three sections:

  • Getting started - instructions on how to build and run the different projects.
  • Contribute - information on how to contribute to the project.
  • Architecture - high-level architecture documentation.

Style guide

Please follow the following (very brief) style guide:

  • Use numbered paragraphs for all instructions or procedures. Start each paragraph with a verb (“click”, “type”, “restart”, etc).
  • Use code blocks for all commands. Don't write them in-line.
  • Avoid long paragraphs - this documentation should be to-the-point and instructional.

Conditional Content

The Contributing Docs site is used both for internal and external contributors. To this end we've facilitated a mean to conditionally show content for either group. This is primarily to keep the external docs simple.

As an end user you can switch the mode using the dropdown in the navigation bar. This will persist across sessions.

Context switcher

In order to write content that targets different context please use the <community> and <bitwarden> tags as demonstrated below.

<community>

This content is shown only to community contributors.

</community>

<bitwarden>

This content is shown only to bitwarden contributors.

</bitwarden>

The technical implementation uses a custom context called devMode which is persisted to local storage, and is exposed as a dropdown in the navigation bar.

It's also possible to conditionally hide pages from the navigation using frontMatter. This is easiest done using the access property, which can be either community or bitwarden.

---
sidebar_custom_props:
  access: bitwarden
---

License

Documentation (docs folder) is Creative Commons BY-NC-ND licensed.

Code is GPL licensed.

contributing-docs's People

Contributors

andrebispo5 avatar dani-garcia avatar danielleflinn avatar differsthecat avatar dwbit avatar eliykat avatar favifake avatar fedemkr avatar hinton avatar jameschensmith avatar jaredsnider-bitwarden avatar jlf0dev avatar justindbaur avatar mgibson1 avatar renovate[bot] avatar thlucas1 avatar trmartin4 avatar withinfocus 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.