8000 GitHub - eclipse-kura/kura at docs-develop
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Eclipse Kura™ is a versatile framework to supercharge your edge devices, streamlining the process of configuring your gateway, connecting sensors, and IoT devices to seamlessly collect, process, and send data to the cloud.

License

Notifications You must be signed in to change notification settings

eclipse-kura/kura

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eclipse Kura User Documentation

We're using several tools for building Kura User Documentation:

  • mkdocs: the main tool to generate the static website
  • mkdocs-material: the used material-style theme
  • mike: the versioning tool, based on mkdocs

Environment setup

In order to install mkdocs, you need to have Python >= 3.8 and pip installed.

The required dependencies for building the documentation can be found in the root folder requirement.txt file. For installing them we suggest using a Python Virtual Environment.

Create a virtual environment as follows:

python3 -m venv .venv

this will create a folder in you current path named .venv. Activate the virtual environment with:

source .venv/bin/activate

you're now using the virtual environment, update pip and install the required dependencies.

pip3 install --upgrade pip
pip3 install -r requirements.txt

You're now ready do build the documentation sources locally.

Building the docs

Simple build

MkDocs comes with a built-in dev-server that lets you preview your documentation as you work on it. Make sure you're in the same directory as the mkdocs.yml configuration file and you have activated the Python virtual environment, then start the ser 8000 ver by running:

mkdocs serve

Open up http://127.0.0.1:8000/ in your browser, and you'll see the docs built from your current sources.

The MkDocs dev-server also supports auto-reloading, and will rebuild your documentation whenever anything in the configuration file, documentation directory, or theme directory changes.

Complete build

mike is the tool to use for building and versioning the documentation. Modify the markdown files and edit mkdocs.yml file accordingly.

To build the documentation and see the changes on your local machine:

mike deploy [version]

Usually [version] should match the branch you're on. Let's say you're updating the documentation for docs-develop you'll the need to run mike deploy docs-develop. This command will create a folder in you current path names site, here you'll find the built documentation sources. You can serve them through a local webserver using:

mike serve

Note: If you can't see your docs it might be because you haven't set a default version to serve. Run the following command for setting the default version to be served by mike:

mike set-default [version]

where [version] is the one you used in the deploy command before.

Use GitHub Codespaces to edit docs in a web browser

1. Create a new branch from docs-develop and press the <> Code button.

Create branch Code button

2. Under the Codespaces title, press the + button to create a new codespace.

Create new workspace

3. A VSCode web instance will be opened in a new tab. Once launched the necessary dependencies will be downloaded, the docs will be compiled, and finally, the docs will be accessible via port 8000.

Docs running in web browser

To access the compiled documentation press the Open in Browser button in the popup.

Open in browser button

Or go to the Ports tab and press the Open in Browser icon corresponding to the mkdocs process

Open in browser from ports

About

Eclipse Kura™ is a versatile framework to supercharge your edge devices, streamlining the process of configuring your gateway, connecting sensors, and IoT devices to seamlessly collect, process, and send data to the cloud.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published
0