-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
26 changed files
with
3,144 additions
and
924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main # Set to your default branch | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"label": "Add content", | ||
"position": 30, | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Add content." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,61 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_position: 25 | ||
--- | ||
|
||
# Configuration | ||
|
||
The `specs.json` file, located in the root folder of your repository, specifies the configuration values used in generating your specification documents. Using the command line menu, you can configure the most important elements. The rest you can do manually. | ||
|
||
## Create (or edit the sample) `spec.json` | ||
|
||
The `specs.json` file, located in the root folder of your repository, specifies the configuration values used in generating your specification documents. These values include the locations of your markdown files, the output path for the generated spec, and metadata like the title, logo, and repository links for each of your specs. Below are the required and optional fields supported in the `specs.json` config file: | ||
```json | ||
{ | ||
"specs": [ | ||
{ | ||
"title": "Spec-Up-T Starterpack", | ||
"description": "Create technical specifications in markdown. Based on the original Spec-Up, extended with Terminology tooling", | ||
"author": "Trust over IP Foundation", | ||
"spec_directory": "./spec", | ||
"spec_terms_directory": "terms-definitions", | ||
"output_path": "./docs", | ||
"markdown_paths": [ | ||
"spec-head.md", | ||
"terms-and-definitions-intro.md", | ||
"example-markup-in-markdown.md", | ||
"spec-body.md" | ||
], | ||
"logo": "https://raw.githubusercontent.com/trustoverip/spec-up-t-starter-pack/main/spec-up-t-starterpack/static/logo.svg", | ||
"logo_link": "https://github.com/trustoverip/spec-up-t", | ||
"favicon": "https://raw.githubusercontent.com/trustoverip/spec-up-t-starter-pack/main/spec-up-t-starterpack/static/favicon.ico", | ||
"source": { | ||
"host": "github", | ||
"account": "trustoverip", | ||
"repo": "spec-up-t-starter-pack" | ||
}, | ||
"external_specs": [ | ||
{ | ||
"external_spec": "test-1", | ||
"gh_page": "https://blockchainbird.github.io/spec-up-xref-test-1/", | ||
"url": "https://github.com/blockchainbird/spec-up-xref-test-1", | ||
"terms_dir": "spec/term-definitions" | ||
}, | ||
{ | ||
"external_spec": "test-2", | ||
"gh_page": "https://blockchainbird.github.io/spec-up-xref-test-2/", | ||
"url": "https://github.com/blockchainbird/spec-up-xref-test-2", | ||
"terms_dir": "spec/term-definitions" | ||
} | ||
], | ||
"katex": false | ||
} | ||
] | ||
} | ||
``` | ||
|
||
- **`public_root`** _(PATH STRING, optional)_: Used to specify a path segment for platforms where the directory structure may differ between local and published environments. | ||
- **`specs`** _(ARRAY, required)_: Contains descriptor objects for each spec in your project, including properties like: | ||
- **`spec_directory`** _(STRING, required)_: The repo-root-relative location of your markdown file directory. The tool automatically searches for `spec.md` here unless otherwise specified in the optional `markdown_paths`. | ||
- **`title`** _(STRING, required)_: The title for your spec, rendered in the document's H1 text and page title. | ||
- **`logo`** _(PATH/URI STRING, optional)_: A reference to a logo asset via a path or URI. | ||
- **`logo_link`** _(URI STRING, optional)_: The URI your logo points to on the rendered page. | ||
- **`markdown_paths`** _(ARRAY, optional)_: Specifies alternative names for your markdown files or includes multiple files for assembly into a single document. | ||
- **`katex`** _(BOOLEAN, optional)_: Enables TeX support via KaTeX when set to `true`. | ||
- **`output_path`** _(STRING, optional)_: Specifies an alternative output location for the generated spec document. | ||
- **`source`** _(OBJECT, optional)_: Configures the source of repo-specific data, such as the hosting service (`host`), account/org (`account`), and repository name (`repo`). | ||
|
||
You're now ready to start rendering specs as HTML sites locally and/or pushing them to GitHub Pages. | ||
|
||
## A complete installation | ||
|
||
This is what a complete installation looks: | ||
|
||
- a `specs.json` file | ||
- a `spec/` directory with sample markdown files | ||
- a `docs` directory with a sample index.html file | ||
- a `node_modules` directory, a `package.json` file, and a `package-lock.json` file (these three elements belong to the `npm` system) | ||
|
||
See [directory `spec-up-t-starterpack` of the installer](https://github.com/blockchainbird/spec-up-t-starter-pack/tree/main/spec-up-t-starterpack) | ||
|
||
## Automation | ||
|
||
The above scripts can easily be triggered by [GitHub Actions](../glossary#github-actions). See [this repo's example](https://github.com/decentralized-identity/spec-up/blob/master/.github/workflows/render-specs.yml). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.