GithubHelp home page GithubHelp logo

romuleald / documentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datadog/documentation

0.0 0.0 0.0 3.7 GB

The source for Datadog's documentation site.

Home Page: http://docs.datadoghq.com

License: Other

Shell 5.74% JavaScript 33.80% Ruby 1.71% Python 12.92% Go 1.29% CSS 0.46% Makefile 0.75% HTML 31.77% Mako 0.05% HCL 0.69% SCSS 10.83%

documentation's Introduction

Documentation site for Datadog

Welcome to the Datadog documentation repository. The markdown stored in this repo is published to the Datadog documentation site using hugo, a static website generation tool.

Contribute to the docs

Contributions are encouraged! If you notice something on one of the pages that needs an edit, open a pull request in this repo for the documentation team to review

Most pages on the documentation site feature an Edit button that sends you to the source file in this repo. You can make an edit straight from the GitHub website!

The edit button on a docs page

For more information on contributing, see the contribution guidelines.

Setup

Note

The documentation build is only available to Datadog employees.

Installation

  1. Install Node.js and npm (Node.js >=14.16.0)
  2. Install Python 3 (you can also use pyenv)
  3. Install Hugo
  4. Install Go (at minimum, go version 1.12)
  5. Install Yarn: npm install -g yarn
  6. Ensure you've created an SSH key and added it to your GitHub account.
  7. Download the documentation repo: git clone [email protected]:DataDog/documentation.git.

Run the server

Inside the 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 the following commands:

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.
make start-docker Build the documentation using the docker image. For more information, see Docker Development.

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

NOTE: make start attempts to pull all dependent repos from their origins or a local cache. The order it attempts to retrieve is:

  • One directory above where this repo is cloned.
  • integrations_data: A local pull of all dependent repos from the last successful build.
  • If neither of the above exist, an attempt is made to pull dependent repos from upstream.

If you'd like to re-pull dependencies, run make clean-all and then try your make command again.

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

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.
    • If you're collaborating on a branch with someone, you can have two names on the branch so you can both receive Slack notifications when a preview build finishes, e.g. <SLACK_HANDLE_1>/<SLACK_HANDLE_2>/<FEATURE_NAME>.
  • 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.
  • Use GitHub's draft pull request feature and appropriate labels such as "Do Not Merge" or "Work in Progress" until your PR is ready to be merged and live on production.

Outside Contributors

  • Fork the master branch.
  • Consult our contributing guidelines.
  • When you are ready to finalize your changes, commit them, and then make a pull request back to DataDog/master.
  • A Datadog technical writer might change your PR title with a DOCS ticket number, such as "[DOCS-9000]," which just means it has been added to the team's internal Jira queue to triage and review. No action is necessary from you if we change the title of your PR.

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 a .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.

Docker development

Prerequisites:

  • Running Monterey OSX
  • Docker Desktop >= 4.7.1 is installed
  • At least 6GB of RAM is dedicated towards Docker for Mac
    1. Open the Docker for Mac app dashboard
    2. Click the gear icon
    3. Click Resources
    4. The memory slider should be set to 6GB
  • VirtioFS is enabled
    1. Open the Docker for Mac app dashboard
    2. Click the gear icon
    3. Click Experimental Features
    4. Click Enable VirtioFS accelerated directory sharing
    5. Click Apply & Restart

How to run documentation inside a Docker container

  1. Go to the project root.
  2. Make a copy of Makefile.config.example called Makefile.config.
  3. Enter a value for GITHUB_TOKEN.
  4. Set FULL_BUILD to true to build the full documentation with all extra content.
  5. Run make start-docker.

To stop the app, hit Ctrl-C or run make stop-docker.

documentation's People

Contributors

guacbot avatar cswatt avatar l0k0ms avatar kayayarai avatar sarina-dd avatar alai97 avatar davidejones avatar ruthnaebeck avatar maycmlee avatar jtappa avatar margotlepizzera avatar api-clients-generation-pipeline[bot] avatar technovangelist avatar nbparis avatar pcarioufr avatar andrewardito avatar bgdeutsch avatar jhotta avatar jeremy-lq avatar drichards-87 avatar estherk15 avatar rtrieu avatar mstbbs avatar zbayoff avatar hestonhoffman avatar buraizu avatar lucaspimentel avatar dussault-antoine avatar ijkaylin avatar clutchski 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.