A sylk CLI plugin for interacting with docusaurus-sylk plugin for Docusaurus
Project description
sylk-docs
This project has been generated thanks to sylk.build
!
This project is using gRPC as main code generator and utilize HTTP2 + protobuf protocols for communication.
Overview
Sylk plugin for auto-generated docs with docusaurus-sylk
plugin for Docusaurus
.
This plugin built with Pluggy
and implement sylk.builder.hookimpl
hookspec to be called from sylk cli build process.
Features
This plugin provide the following features:
- Auto generated docs with Docosaurus based on
sylk schema
- Beautiful documentation based on
Envoy
theme - Easy sidebar navigation
- Links references within the documentation all automatically resolves to relevant docs
Usage
This plugin project is meant to be used ONLY with Sylk CLI
.
- First install Sylk CLI with the extra provided for sylk-docs dependencies:
pip install sylk[docs]
- Create a new project
sylk new AwesomeDocs
cd AwesomeDocs
- There you will find
sylk.json
file open it and enter the following configs underconfigs.plugins
array andproject.extensions
array:
{
// ... more above ...
"configs": {
// ... more options ...
"plugins": [
"sylk-docs"
]
},
"project": {
// ... more properties above ...
"extensions": [
{
"@type": "sylk-docs/sylk.Plugin.v1.Plugin",
"docusaurus": {
"sylk": {
"sylkJsonPaths": [
"./sylk/AwesomeDocs/sylk.json"
],
"sylkDocsPath": "./sylkdocs",
"sidebarPath": "./sidebarsSylkdocs.js"
},
"docs": {
"routeBasePath": "sylkdocs",
"sidebarPath": "./sidebarsSylkdocs.js"
}
}
}
]
}
}
- Create your project schema resources
Quick Guide
to sylk CLI - When you are ready build the project resources with
sylk build
command, this will run the plugin as well in the build lifecycle and will instantiate / re-build the project docs
Index
Usage:
Resources:
Services
docs
build
[Unary]
- Input: sylk.Docusaurus.v1.PresetOptions
- Output: google.protobuf.Empty
Packages
sylk.Plugin.v1
sylk.Docusaurus.v1
PluginOptions
PluginOptions
:
-
sylkJsonPaths [TYPE_STRING]
-
sylkDocsPath [TYPE_STRING]
-
sidebarPath [TYPE_STRING]
-
routeBasePath [TYPE_STRING]
-
git [TYPE_STRING]
ContentDocOptions
ContentDocOptions
:
-
routeBasePath [TYPE_STRING]
-
sidebarPath [TYPE_STRING]
sylk.Readme.v1
Markdown
Markdown
:
-
path [TYPE_STRING]
-
title [TYPE_STRING]
Usage
This project supports clients communication in the following languages:
Python
from clients.python import sylkdocs
client = sylkdocs()
# Unary call
response = stub.<Unary>(<InMessage>())
print(response)
# Server stream
responses = stub.<ServerStream>(<InMessage>())
for res in responses:
print(res)
# Client Stream
requests = iter([<InMessage>(),<InMessage>()])
response = client.<ClientStream>(requests)
print(response)
# Bidi Stream
responses = client.<BidiStream>(requests)
for res in responses:
print(res)
This project and README file has been created thanks to sylk.build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file sylk_docs-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: sylk_docs-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c675b0aa2be571ee0f432e8b8458d34a0b7ccb660b5a9226a40a3d60a0d62a5f |
|
MD5 | f82c65188bba3b01544771a8717fde60 |
|
BLAKE2b-256 | 83b99db0fd161b5fd31a20b704c4e0379d0cc14c8504fbff9be3c1385db8cc15 |