Skip to main content

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.

  1. First install Sylk CLI with the extra provided for sylk-docs dependencies:
pip install sylk[docs]
  1. Create a new project
sylk new AwesomeDocs
cd AwesomeDocs
  1. There you will find sylk.json file open it and enter the following configs under configs.plugins array and project.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"
		  }
	    }
	  }
    ]
  }
}
  1. Create your project schema resources Quick Guide to sylk CLI
  2. 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]

Packages

sylk.Plugin.v1

Plugin

Plugin

:

sylk.Docusaurus.v1

PresetOptions

PresetOptions

:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sylk_docs-0.0.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for sylk_docs-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c675b0aa2be571ee0f432e8b8458d34a0b7ccb660b5a9226a40a3d60a0d62a5f
MD5 f82c65188bba3b01544771a8717fde60
BLAKE2b-256 83b99db0fd161b5fd31a20b704c4e0379d0cc14c8504fbff9be3c1385db8cc15

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page