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.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file sylk_docs-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sylk_docs-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c3436d1ae399a1634424ea8c1b4322c7c151da7cde0d214b0c16f478b020ca0
MD5 86c371abbad8c7d794336801b080d277
BLAKE2b-256 3c03bc645ea02d7f9cc7c04f87d6f8cd3e6fc12334885055dbce0bdd53adfaf9

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