-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #518 from JustinW80/update-docs
Update docs
- Loading branch information
Showing
9 changed files
with
288 additions
and
21 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<h1> Installation </h1> | ||
|
||
Doorstop requires [Python](https://www.python.org/) v3.5+ and [Git](https://git-scm.com/) or other version control system. | ||
|
||
Once Python is installed on your platform, install Doorstop using pip. | ||
|
||
```sh | ||
pip install doorstop | ||
``` | ||
|
||
or add it to your [Poetry](https://poetry.eustace.io/) project: | ||
|
||
```sh | ||
$ poetry add doorstop | ||
``` | ||
|
||
After installation, Doorstop is available on the command-line: | ||
|
||
```sh | ||
$ doorstop --help | ||
``` | ||
|
||
And the package is available under the name 'doorstop': | ||
|
||
```sh | ||
$ python | ||
>>> import doorstop | ||
>>> doorstop.__version__ | ||
``` |
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,68 @@ | ||
<h1> Quickstart </h1> | ||
|
||
Help with Doorstop: | ||
|
||
- `doorstop --help` | ||
- `doorstop <COMMAND> --help` | ||
|
||
Set up a repository for controlling documents: | ||
|
||
- `mkdir /path/to/docs` | ||
- `cd /path/to/docs` | ||
- `git init` | ||
|
||
Create a root parent requirements document: | ||
|
||
- `doorstop create REQ ./reqs/req` | ||
|
||
Add items to a document, will be automatically numbered: | ||
|
||
- `doorstop add REQ` | ||
|
||
Create a child document (low level requirements) to link to the parent: | ||
|
||
- `doorstop create LLR ./reqs/llr --parent REQ` | ||
- `doorstop add LLR` | ||
|
||
Link low level items to requirements (separators like '-' are optional and ignored): | ||
|
||
- `doorstop link LLR001 REQ001` | ||
|
||
Check integrity of the document tree and validate links: | ||
|
||
- `doorstop` | ||
|
||
Mark an unreviewed item, document, or all documents as reviewed: | ||
|
||
- `doorstop review REQ-001 # Marks item REQ-001 as reviewed` | ||
- `doorstop review REQ # Marks all items in document REQ as reviewed` | ||
- `doorstop review all # Marks all documents as reviewed` | ||
|
||
Mark suspect links in an item, document, or all documents, as cleared: | ||
|
||
- `doorstop clear LLR-001 # Marks all links originating in item LLR-001 as cleared` | ||
- `doorstop clear LLR-001 REQ # Marks links in item LLR-001 to document REQ as cleared` | ||
- `doorstop clear LLR REQ # Marks all links from LLR that target REQ as cleared` | ||
- `doorstop clear LLR all # Marks all links originating in document LLR as cleared` | ||
- `doorstop clear all # Marks all links in all documents as cleared` | ||
|
||
Create an HTML document in `publish`: | ||
|
||
- `doorstop publish all ./publish` | ||
|
||
View in the graphical user interface (GUI): | ||
|
||
- `doorstop-gui` | ||
|
||
Browse the doc tree on a local web server: | ||
|
||
- `doorstop-server` | ||
- Point browser to: http://127.0.0.1:7867/ | ||
- Ctrl+C to quit the server. | ||
|
||
Round-trip to Excel: | ||
|
||
- `doorstop export -x REQ REQ.xslx` | ||
- Make edits in Excel. Do not edit UIDs. Leave UID cells blank for new items. | ||
- `doorstop import REQ.xslx REQ` | ||
- `rm REQ.xlsx` |
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,3 +1,99 @@ | ||
<h1>Document Reference</h1> | ||
|
||
> Help wanted! Please [contribute to this documentation](https://github.com/doorstop-dev/doorstop/edit/develop/docs/reference/document.md). | ||
Doorstop documents are folders, with metadata stored in a configuration YAML | ||
file `.doorstop.yml` directly below the folder. | ||
|
||
# Standard Document Attributes | ||
|
||
Upon [creation](../cli/creation.md), `.doorstop.yml` contains default settings. | ||
|
||
```sh | ||
$ doorstop create REQ ./reqs | ||
created document: REQ (@/reqs) | ||
``` | ||
|
||
Then open `REQ/.doorstop.yml` in any text editor: | ||
|
||
```yaml | ||
settings: | ||
digits: 3 | ||
prefix: REQ | ||
sep: '' | ||
``` | ||
|
||
## `settings` | ||
|
||
Parameters that affect the entire document fall under here. | ||
|
||
### `digits` | ||
|
||
Defines the number of digits in an item UID. The default value is 3. Optionally, | ||
you can set it through the `-d` command line option of the `doorstop create` | ||
command. It is a mandatory and read-only document setting. | ||
|
||
### `parent` | ||
|
||
Defines the parent document prefix. You set it through the `-p` command line | ||
option of the `doorstop create` command. It is an optional and read-only | ||
document setting. | ||
|
||
### `prefix` | ||
|
||
Defines the document prefix. You set it through the prefix of the | ||
`doorstop create` command. It is a mandatory and read-only document setting. | ||
|
||
### `sep` | ||
|
||
Defines the separator between the document prefix and the number in an item UID. | ||
The default value is the empty string. You have to set it manually before an | ||
item is created. Afterwards, it should be considered as read-only. This | ||
document setting is mandatory. | ||
|
||
# Extended Document Attributes | ||
|
||
In addition to the standard attributes, Doorstop will allow any number of custom | ||
extended attributes (key-value pairs) in the YAML file. The extended attributes | ||
will not be part of a published document, but they can be queried by a 3rd party | ||
application through the REST interface or the Python API. | ||
|
||
## `attributes` | ||
|
||
Extended document attributes fall under here. | ||
|
||
### `defaults` | ||
|
||
Defines the [defaults for extended | ||
attributes](item.md#defaults-for-extended-attributes). This is an optional | ||
document configuration option. | ||
|
||
### `reviewed` | ||
|
||
Defines which [extended attributes contribute to the item | ||
fingerprint](item.md#extended-reviewed-attributes). This is an optional document | ||
configuration option. | ||
|
||
In the document configuration files, you can include other YAML files through a | ||
value tagged with `!include`. The path to the included file is always relative | ||
to the directory of the file with the include tag. Absolute paths are not | ||
supported. Please have a look at this example: | ||
|
||
In `.doorstop.yml`: | ||
|
||
```yaml | ||
settings: | ||
digits: 3 | ||
prefix: REQ | ||
sep: '' | ||
attributes: | ||
defaults: | ||
text: !include path/to/file.yml | ||
``` | ||
|
||
In `path/to/file.yml`: | ||
|
||
```yaml | ||
| | ||
Some template text, which may | ||
have several | ||
lines. | ||
``` |
Oops, something went wrong.