Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #80 from projectsyn/feat/manage-readme
Browse files Browse the repository at this point in the history
Manage component README
  • Loading branch information
simu authored Jun 10, 2022
2 parents 10935d1 + 93890aa commit 5cd320e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
27 changes: 27 additions & 0 deletions moduleroot/README.md.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Commodore Component: <%= @configs['componentName'] %>

This is a [Commodore][commodore] Component for <%= @configs['componentName'] %>.

This repository is part of Project Syn.
For documentation on Project Syn and this component, see https://syn.tools.

## Documentation

The rendered documentation for this component is available on the [Commodore Components Hub](https://hub.syn.tools/<%= @metadata[:module_name].delete_prefix('component-') %>).

Documentation for this component is written using [Asciidoc][asciidoc] and [Antora][antora].
It is located in the [docs/](docs) folder.
The [Divio documentation structure](https://documentation.divio.com/) is used to organize its content.

Run the `make docs-serve` command in the root of the project, and then browse to http://localhost:2020 to see a preview of the current state of the documentation.

After writing the documentation, please use the `make docs-vale` command and correct any warnings raised by the tool.

## Contributing and license

This library is licensed under [BSD-3-Clause](LICENSE).
For information about how to contribute see [CONTRIBUTING](CONTRIBUTING.md).

[commodore]: https://syn.tools/commodore/
[asciidoc]: https://asciidoctor.org/
[antora]: https://antora.org/
8 changes: 5 additions & 3 deletions moduleroot/docs/antora.yml.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#
# File managed by ModuleSync - Do Not Edit
#
# The name and title can be customized in `.sync.yml` with `'docs/antora.yml'.title`, `'docs/antora.yml'.name`
# The title can be customized in `.sync.yml` with `:global.componentName`
# The name is generated from the component's GitHub repository name, with the
# `component-` prefix removed.
#

name: <%= @configs['name'] %>
title: <%= @configs['title'] %>
name: <%= @metadata[:module_name].delete_prefix('component-') %>
title: <%= @configs['componentName'] %>
version: <%= @configs['version'] %>
start_page: ROOT:index.adoc
nav:
Expand Down

0 comments on commit 5cd320e

Please sign in to comment.