Code Monkey home page Code Monkey logo

documentation's Introduction

Documentation site for Datadog

Built with hugo, a static website generation tool.

Setup

Installation

  1. Install npm

  2. Install Python3 (you can also use pyenv)

  3. Install hugo

  4. Install yarn: npm install -g yarn

  5. Download the documentation repo git clone https://github.com/DataDog/documentation.git

Run the server

Inside documentation/ folder, create a Makefile.config file from the Makefile.config.example

If you are a Datadog employee, add your Github personal token

To run the documentation site locally, execute:

Command Description
make start-no-pre-build Build the lightweight version of the documentation with no extra content
make start Build the full documentation with all extra content (integrations, extra pulled files, localized content, etc). Only useful if you have a Github personal token setup in your Makefile.config or the extra content is available locally. If you are working with local content, the repo must be downloaded to the same folder as the documentation repo.

Documentation is then available at http://localhost:1313

To learn more about how the documentation is built, refer to the Documentation Build Wiki.

Makefile

To use the Makefile, create a Makefile.config. See the instructions at the top of the Makefile.config.example.

After you have a config file, run make help to see options:

clean-all                 Clean everything.
clean-build               Remove build artifacts.
clean-exe                 Remove execs.
clean-integrations        Remove built integrations files.
clean-node                Remove node_modules.
clean-virt                Remove python virtual env.
clean                     Clean all make installs.
hugpython                 Build virtualenv used for tests.
source-helpers            Source the helper functions used to build, test, deploy.
start-no-pre-build        Build the documentation without automatically pulled content.
start                     Build the documentation with all external content.
stop                      Stop wepack watch/hugo server.

Working on Docs

Datadog Staff

  • Always branch off of master; never commit directly to master.
  • Name your branch <SLACK_HANDLE>/<FEATURE_NAME> if you would like to create a preview site and run tests.
  • When you are ready to commit, create a new pull request to master from your branch.
  • Consult our contributing guidelines, and the Documentation Build Wiki.

Outside Contributors

  • Fork the master branch.
  • When you are ready to finalize your changes, commit them, and then make a pull request back to DataDog/master.
  • Consult our contributing guidelines.

A note about markdown

This site uses Goldmark for markdown, which is compliant with CommonMark 0.29.

If you include ANY Markdown in a file, give it an .md extension.

Make sure all files are lowercase. Macs are case insensitive when creating links to images and pages, but our build server is not, so tests may work locally, but the site will fail in production.

Releasing

Within 10 minutes of merging to master, it deploys automatically.

How to add a new integration

See the dedicated doc page.

documentation's People

Contributors

andrewardito avatar celenechang avatar clutchski avatar conorbranagan avatar cswatt avatar daniellanger avatar davidejones avatar githomin avatar guacbot avatar ijkaylin avatar irabinovitch avatar jeremy-lq avatar jhotta avatar jiboong avatar jyee avatar kayayarai avatar l0k0ms avatar lucaspimentel avatar margotlepizzera avatar mikezvi avatar mstbbs avatar nbparis avatar nsollecito avatar pcarioufr avatar phrawzty avatar pierrevanroy avatar ruthnaebeck avatar sarina-dd avatar technovangelist avatar zbayoff 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.