To see the latest released documentation for the WSO2 Security & Compliance Documentation, go to: https://security.docs.wso2.com/en/latest/
This project requires Python 3.8.0. You can verify the version installed on your machine by running the following command.
$ python3 --version
Python 3.8.0If Python 3.8.0 is not installed, download it from python.org/downloads or use your platform's package manager. The pinned dependencies support Python 3.8 to 3.12; Python 3.13 and later are not yet supported.
INFO
Python 3.8.0 includes pip by default. If pip is missing, download
get-pip.pyand 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:
$ pip3 install --upgrade pip-
Navigate to the
<language-folder>/folder.$ cd docs-security/en -
Install the required pip packages.
This will install MkDocs and the required theme, extensions, and plugins.
$ pip3 install -r requirements.txt
Follow the steps below to clone the Security & Compliance documentation GitHub repository and to run the site on your local server.
-
Fork the GitHub repository:
https://github.com/wso2/docs-security.git -
Navigate to the place where you want to clone the repo.
Git clone the forked repository.
$ git clone https://github.com/[git-username]/docs-security.git
-
Navigate to the folder containing the repo that you cloned in step 4.1 on a terminal window.
For example:
$ cd docs-security/<Language-folder>/
$ cd docs-security/en/ -
Run the following command to start the server and view the site on your local server.
$ mkdocs serve
NOTE:
If you are making changes and want to see them on the fly, run the following command to start the server and view the site on your local server.
-
Navigate to the
mkdocs.ymlfile. -
Change the following configuration to
falseas shown below.#Breaks build if there's a warning strict: false -
Run the following command to start the server and to make the server load only the changed items and display the changes faster.
mkdocs serve --dirtyreload
-
-
Open the following URL on a new browser window to view the WSO2 Security & Compliance documentation site locally.
NOTE:
If you were running the
mkdocs serve --dirtyreloadcommand to run the MkDocs server, make sure to change the configuration in themkdocs.ymlfile as follows before sending a pull request.
strict: true
Licenses this source under the Apache License, Version 2.0 (LICENSE), You may not use this file except in compliance with the License.