The aim of this project is to support learning and development by making documentation about robots and electronics interactive. Run examples on real hardware in a safe and reproducible way.
https://www.npmjs.com/package/docslab
There are three ways to use docslab:
- copy-and-paste some code into your HTML file,
- import docslab as a TypeScript/ES6 dependency,
- use an integration for frameworks like Sphinx or Docusaurus.
Live examples are shown at https://docslab.org/
- Docusaurus, https://www.npmjs.com/package/docslab-docusaurus
- mdBook, https://crates.io/crates/mdbook-docslab
- MkDocs, https://pypi.org/project/mkdocs-docslab/
- Sphinx, https://pypi.org/project/sphinx-docslab/
Please report errors, odd behavior, or feature requests at https://github.com/rerobots/docslab/issues
Current CI report:
For local development, clone the repository, and then yarn install
.
To run the examples,
yarn start
and open the displayed URL (likely http://localhost:8080/) in your browser.
Generated HTML has a <div>
block with attributes that specify how to prepare
the runtime environment. Optionally, the example code can be given at a URL
declared among these attributes, or it can be written in a <code>
block
inside the main <div>
.
This is free software, released under the Apache License, Version 2.0. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.