GithubHelp home page GithubHelp logo

brandon-segal / docs.getdbt.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dbt-labs/docs.getdbt.com

0.0 1.0 0.0 546.13 MB

The code behind docs.getdbt.com

Home Page: https://docs.getdbt.com/

License: Apache License 2.0

JavaScript 65.38% M 0.08% CSS 22.91% Makefile 0.23% HTML 11.40%

docs.getdbt.com's Introduction

We use docusaurus to power docs.getdbt.com.

Table of Contents

Code of conduct

Please review the dbt docs contributors code of conduct. Creating an inclusive and equitable environment for our documents is more important than any other aspect. Syntax errors can be corrected, but trust, once lost, is difficult to gain back.

Contributing

We welcome contributions from community members to this repo:

  • Fixes: When you notice an error, you can use the Edit this page button at the bottom of each page to suggest a change.
  • New documentation: If you contributed code in dbt-core, we encourage you to also write the docs here! Please reach out in the dbt community if you need help finding a place for these docs.
  • Major rewrites: You can file an issue or start a discussion to propose ideas for a content area that requires attention.

You can use components documented in the docusaurus library.

Writing content

When writing content, you should refer to the style guide and content types to help you understand our writing standards and how we break down information in the product documentation.

Versioning and single-sourcing content

We now enable you to reuse content between different docs pages, version pages, and establish product variables in the dbt Labs product documentation. To learn more about how to single source content between versions, product variables, and other content, see Single-sourcing content.

Adding tabbed components to a page

You can add code snippets and other content in a tabbed view. To learn more about adding tabbed components, see Adding page components.

Running the Docs site locally

You can click a link available in a netlify bot PR comment to see and review your changes rendered on a staging server. You are also able to see and review your proposed modifications locally on your computer. Our setup instructions use homebrew:

Prerequisites

  • (Mac Terminal) Install Xcode Command Line Tools
    • Open a terminal window, run xcode-select --install, and follow the on-screen prompts in the pop-up window.
  • (Mac and Linux) Install homebrew
    • Copy and paste /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" in to a terminal window and follow the prompts. Once the installation has completed, follow the Next Steps instructions listed in terminal.
  • (Windows) Install Node.js
  1. (Mac and Linux only) Install node: brew install node
  2. Clone this repo: git clone https://github.com/dbt-labs/docs.getdbt.com.git
  3. cd into the repo: cd docs.getdbt.com
  4. cd into the website subdirectory: cd website
  5. Install the required node packages: npm install (optional โ€” install any updates)
  6. Build the website: npm start
  7. Before pushing your changes to a branch, check that all links work by using the make build script.

Advisory:

  • If you run into an fatal error: 'vips/vips8' file not found error when you run npm install, you may need to run brew install vips. Warning: this one will take a while -- go ahead and grab some coffee!

Running the Cypress tests locally

Method 1: Utilizing the Cypress GUI

  1. cd into the repo: cd docs.getdbt.com
  2. cd into the website subdirectory: cd website
  3. Install the required node packages: npm install
  4. Run npx cypress open to open the Cypress GUI, and choose E2E Testing as the Testing Type, before finally selecting your browser and clicking Start E2E testing in {broswer}
  5. Click on a test and watch it run!

Method 2: Running the Cypress E2E tests headlessly

  1. cd into the repo: cd docs.getdbt.com
  2. cd into the website subdirectory: cd website
  3. Install the required node packages: npm install
  4. Run npx cypress run

docs.getdbt.com's People

Contributors

alexbethea22 avatar amychen1776 avatar annafil avatar bennieregenold7 avatar breezyfasano avatar callum-mcdata avatar clrcrl avatar cmcarthur avatar dataders avatar dbeatty10 avatar drewbanin avatar ericf-firebolt avatar gwenwindflower avatar jasnonaz avatar jkarlavige avatar joellabes avatar john-rock avatar johnblust avatar jtcohen6 avatar kirafuruichi avatar klehmer avatar krevitt avatar matt-winkler avatar matthewshaver avatar mirnawong1 avatar nghi-ly avatar runleonarun avatar saouderkirk avatar schottj avatar zesuma avatar

Watchers

 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.