Code Monkey home page Code Monkey logo

docs-choreo-dev's Introduction

Choreo Documentation

This is the Choreo documentation repository. This repository is open and we welcome your contributions!

To see the Choreo documentation site, go to https://wso2.com/choreo/docs/

Contribute to Choreo documentation

Before you contribute, read the following guidelines to understand how you can start contributing:

  1. Accept the contributor license agreement (CLA)

    You need to accept the contributor license agreement (CLA) when you are prompted via a GitHub email notification on sending your first pull request (PR). Subsequent PRs will not require CLA acceptance.

    If the CLA changes for some (unlikely) reason, you'll have to accept the new CLA text when you send your first PR after the change.

  2. Fork this repository, make your changes, and send in a pull request.

    For an overview of the general voice, tone, content style, and text formatting to follow when contributing to Choreo documentation, see Choreo Documentation Guidelines and Best Practices

We look forward to your contributions.

Run the project locally

Step 1 - Install Python

MacOS

If you are using macOS, you probably already have a version of Python installed on your machine. Run the following command to verify:

$ python --version
Python 2.7.2

If your version of Python is 2.x.x, you need to install Python3. Follow the instructions in this guide to install Python3.

Once you are done, you should see two versions of Python on your machine; python2 and python3.

Ubuntu and other versions of Debian Linux

Python 3 is pre-installed in these versions, which you can verify using the python3 -V command. Run sudo apt install -y python3-pip to install pip and verify using pip3 -V.

Step 2 - Install pip

INFO

If pip is not already installed on your machine, run get-pip.py to install pip. Then run the following command to install it:

$ python get-pip.py

Pip is most likely installed by default. However, you may need to upgrade pip to the latest version:

$ pip install --upgrade pip

Step 3 - Install the pip packages

To clone the Choreo documentation GitHub repository and run the site on your local server, follow these steps:

  1. Fork https://github.com/wso2/docs-choreo-dev.

  2. Navigate to the locatiion where you want to clone the repo and clone the forked repository.

    $ git clone https://github.com/[git-username]/docs-choreo-dev.git
  3. Navigate to the directory where you cloned the repo.

    For example:

    $ cd docs-choreo-dev/<Language-folder>/
    $ cd docs-choreo-dev/en/
  4. Install the required pip packages.

    This step installs MkDocs together with the required theme, extensions, and plugins.

    • If you are using Python2, run the following command:

      $ pip install -r requirements.txt
    • If you are using Python3, run the following command:

      $ pip3 install -r requirements.txt

Step 4 - Run MkDocs

  1. To start the server and view the site on your local server, run the following command:

    $ mkdocs serve

    NOTE:

    If you want to make changes and see them on the fly, run the following command to start the server and view the site on your local server:

    1. Navigate to the mkdocs.yml file.

    2. Set the following configuration:

      #Breaks build if there's a warning
      strict: false
      
    3. To start the server, make it load the changes, and display the changes faster, run the following command:

      mkdocs serve --dirtyreload

  2. To view the Choreo documentation site locally, open the following URL on a new browser window:

    http://localhost:8000/

NOTE:

If you are using the mkdocs serve --dirtyreload command to run the MkDocs server, be sure to change the configuration in the mkdocs.yml file as follows before sending a pull request:

strict: true

License

Licenses this source under the Apache License, Version 2.0 (LICENSE), You may not use this file except in compliance with the License.

docs-choreo-dev's People

Contributors

a5anka avatar anupama-pathirage avatar chamarat-wso2 avatar iamsameeraliyanage avatar madhuramendis avatar nashaath avatar rukshiw avatar shanir avatar udhanmti avatar vordimous 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.