Skip to content

SanchilaAmavi/docs-apim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11,863 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSO2 API Manager Documentation

slack StackOverflow Jenkins Build


Contributing to WSO2 API-M documentation

As an open source project, WSO2 API-M welcomes contributions from the community. To start contributing, read these contribution guidelines for information on how you should go about contributing to our project.

  1. Accept the Contributor License Agreement (CLA)

    You need to Accept the Contributor License Agreement (CLA) when prompted by a GitHub email notification after sending your first Pull Request (PR). Subsequent PRs will not require CLA acceptance.

    If the CLA gets changed for some (unlikely) reason, you will be presented with the new CLA text after sending your first PR after the change.

  2. Fork this repository, make your changes, and send in a pull request (PR). Make sure you are contributing to the correct branch (for example, if your change is relevant to WSO2 API-M 4.7.0 documentation, you should commit your changes to the 4.7.0 branch).

  3. Send multiple pull requests to all the relevant branches.

    If your change is relevant to the latest API-M release, please send your change to the respective latest API-M release branch and the master branch, which is the upcoming API-M release documentation branch, as well.

    For example, if the latest API-M release is 4.7.0, and if your change is relevant to API-M 4.6.0, 4.5.0, 4.4.0, 4.3.0, and 4.2.0, send PRs to the 4.6.0, 4.5.0, 4.4.0, 4.3.0, 4.2.0, and the master branches.

Check the issue tracker for open issues that interest you. We look forward to receiving 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. You can verify this by running the following command.

$ python --version
Python 2.7.2

If your version of Python is Python 2.x.x, you also need to install Python 3. This is because the PDF plugin only supports Python 3. Follow the instructions in this guide to install Python 3 properly.

Once you are done, you will have two versions of Python on your machine; a version of python 2 and a version of python 3.

Ubuntu and other versions of Debian Linux

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

Step 2 - Install Pip

INFO

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

$ python3 get-pip.py

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

$ python3 -m pip install --upgrade pip

Step 3 - Install the pip packages

Follow the steps below to clone the API-M documentation GitHub repository and to run the site on your local server.

  1. Fork the GitHub repository: https://github.com/wso2/docs-apim.git

  2. Navigate to the place where you want to clone the repo.

    Git clone the forked repository.

    $ git clone https://github.com/[git-username]/docs-apim.git
  3. Navigate to the folder containing the repo that you cloned in step 3.2 on a terminal window.

    For example:

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

    This will install MkDocs and the required theme, extensions, and plugins.

    • If you are using Python 2 (legacy support), use the following command:

      $ pip install -r requirements.txt
    • If you are using Python 3 (recommended), use the following command:

      $ python3 -m pip install -r requirements.txt

Step 4 - Run MkDocs

  1. Run the following command to start the MkDocs server and view the documentation locally:

    $ python3 -m mkdocs serve

    NOTE:

    If you want to see changes automatically while editing:

    1. Open the mkdocs.yml file.

    2. Set the following configuration:

      strict: false
      
    3. Run the server with live reload:

      $ python3 -m mkdocs serve --dirtyreload
  2. Open the following URL in your browser to view the API Manager documentation site locally.

    http://localhost:8000/getting-started/overview/

NOTE:

If you use mkdocs serve --dirtyreload, make sure to reset the configuration before committing:

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CSS 27.6%
  • Java 23.2%
  • HTML 20.8%
  • Shell 9.6%
  • PowerShell 9.0%
  • JavaScript 6.0%
  • Other 3.8%