Giter Club home page Giter Club logo

centreon-documentation's Introduction

Docs @ Centreon

Welcome to the repo for our documentation. This is the source for https://docs.centreon.com/.

Feel free to send us pull requests and file issues. Our docs are completely open source and we deeply appreciate contributions from our community!

Table of Contents

Providing feedback

We really want your feedback, and we've made it easy. You can edit a page or request changes using the "Edit this page" button at the bottom of each page.

Only file issues about the documentation in this repository.

One way to think about this is that you should file a bug here if your issue is that you don't see something that should be in the docs, or you see something incorrect or confusing in the docs.

  • If your problem is a general question about how to configure or use Centreon, ask on our community platform The Watch instead.

  • If you have an idea for a new feature or behavior change in a specific aspect of Centreon, or have found a bug in part of Centreon, file that issue in the project's code repository. You may use the contribution guide here.

Contributing

We value your documentation contributions, and we want to make it as easy as possible to work in this repository. One of the first things to decide is which branch to base your work on. If you get confused, just ask and we will help. If a reviewer realizes you have based your work on the wrong branch, we'll let you know so that you can rebase it.

To understand how the documentation is structured, you may have a look to the Docusaurus project. We're using version 2.

Pull request guidelines

Help us review your PRs more quickly by following these guidelines.

  • Try not to touch a large number of files in a single PR if possible.

  • Don't change whitespace or line wrapping in parts of a file you are not editing for other reasons. Make sure your text editor is not configured to automatically reformat the whole file when saving.

Style guide

Try not to have lines over 80 characters. Use your best judgment, and try to follow the example set by the existing documentation.

How to build the documentation locally

This website is built using Docusaurus 2, a modern static website generator.

Which branch should I base my PRs on?

Use branch staging. We will merge the PR into production once it has gone through the validation process.

Prerequisites

  1. Install yarn. On Windows: https://classic.yarnpkg.com/latest.msi

  2. Install node.js (version 14 minimum): https://nodejs.org/en/download/

  3. Clone the repository :

    git clone https://github.com/centreon/centreon-documentation.git
    
  4. If you need, create and/or check out the branch you want:

    git branch <name_of_branch>
    
    git checkout <name_of_branch>
    
  5. Install dependencies:

    yarn install --frozen-lockfile
    

Building the documentation website

  • Build the EN or FR version of the site (faster)

    • EN: yarn start
    • FR: yarn start --locale=fr

    The website opens in your browser at the following address: http://localhost:3000/. Most changes are reflected live without having to restart the server.

  • If you really need to build the whole website, use the following command (but be aware it takes a long time to build):

    yarn build
    

    Then use the npm run serve command to open the website in your browser.

Adding files to the table of contents

  • There is only 1 ToC file per version, in English. ToC files are located in the versioned_sidebars folder. For instance, the EN ToC file for version 21.10 is called version-21.10-sidebars.json.
  • For the French ToC, there is no ToC file, but a .json file which contains translated strings for chapter headings, located in the following folder: i18n\fr\docusaurus-plugin-content-docs. For instance, the FR translation file for version 21.10 is called version-21.10.json.

Making changes to the same file in different versions

If you want to make the same change to a file across different versions, you have to copy your change to each version of the doc manually (no cherrypicking).

Docusaurus documentation

If you need help with Docusaurus, read their documentation.

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.