yard-lucid 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/README.md +48 -0
- data/lib/yard-lucid/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1373a484e51aba3b4420ebb1b736346af41f1c3
|
4
|
+
data.tar.gz: 390dde9be9c53f05fea2641d48399795a9a1a307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 108e8a84b704bf5ab72da01cd0f57ac8c93e7dfec008f60a40eacb49995154d4e165bda378e1c52f10e72b1d43a513dc10691271bf93db21fdf919de7da4baa7
|
7
|
+
data.tar.gz: d03f0c585b9e8dac3b587fb78458bc43453ea7a8e91c62dfa9598fcaba4e110ea3e6595bc7db9a5d8799fcb2042d587cdd3645411e74e57223a13f2fe44778b5
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--plugin yard-lucid
|
data/README.md
CHANGED
@@ -53,6 +53,54 @@ Once that is done, you can run YARD as you normally would and have your Gherkin
|
|
53
53
|
$ yardoc 'features/**/*.feature' 'steps/**/*.rb'
|
54
54
|
```
|
55
55
|
|
56
|
+
### Documentation Server
|
57
|
+
|
58
|
+
You can also use the YARD server to serve up a copy of a documentation repository. In the directory where you generated your documentation, do this:
|
59
|
+
|
60
|
+
```
|
61
|
+
yard server
|
62
|
+
```
|
63
|
+
|
64
|
+
This will start up a server at http://localhost:8808 that you can then view your repository at.
|
65
|
+
|
66
|
+
### Configuration
|
67
|
+
|
68
|
+
By default the yardoc output will generate a search field for features and tags. This can be configured through the yard configuration file `~/.yard/config`. By default the configuration, YAML format, that is generate by the `yard config` command will save a `SymbolHash`. You can still edit this file add the entry for `:"yard-lucid":` and the sub-entry `menus:`. Here's an example:
|
69
|
+
|
70
|
+
```yaml
|
71
|
+
--- !map:SymbolHash
|
72
|
+
:load_plugins: true
|
73
|
+
:ignored_plugins: []
|
74
|
+
|
75
|
+
:autoload_plugins: []
|
76
|
+
|
77
|
+
:safe_mode: false
|
78
|
+
|
79
|
+
:"yard-lucid":
|
80
|
+
menus: [ 'features', 'directories', 'tags', 'steps', 'step definitions' ]
|
81
|
+
```
|
82
|
+
|
83
|
+
This allows you to add or remove these search fields. The `menus` section can contain all of the above mentioned menus or simply an empty array `[]` if you want no additional menus.
|
84
|
+
|
85
|
+
You can exclude any feature or scenario from the yardoc by adding predefined tags to them. To define tags that will be excluded in the yard configuration file, just do this:
|
86
|
+
|
87
|
+
```yaml
|
88
|
+
:"yard-lucid":
|
89
|
+
exclude_tags: [ 'practice', 'demo' ]
|
90
|
+
```
|
91
|
+
|
92
|
+
Here any scenarios or features marked with the tags `@practice` or `@demo` would not be included in the documentation.
|
93
|
+
|
94
|
+
Finally, you may want to add other step definition keywords. Lucid Yard already supports the English step definition keywords, but you might want to add foreign language ones. Or you might be using some variant of Gherkin that allows for different step definitions. Using the yard configuration file, you can define additional step definitions that can be matched.
|
95
|
+
|
96
|
+
```yaml
|
97
|
+
:"yard-lucid":
|
98
|
+
language:
|
99
|
+
step_definitions: [ 'Given', 'When', 'Then', 'And', '*', 'Soit', 'Etantdonné', 'Lorsque', 'Lorsqu', 'Alors', 'Et' ]
|
100
|
+
```
|
101
|
+
|
102
|
+
Note that when doing this you'll want to include the defaults that Lucid Yard provides as well.
|
103
|
+
|
56
104
|
## Development
|
57
105
|
|
58
106
|
After checking out the repo, run `bin/setup` to install dependencies. Given the nature of Lucid Yard, it's difficult to provide unit tests for it, so you won't find a great deal of them. In fact, you'll find basically none.
|
data/lib/yard-lucid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-lucid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Nyman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- ".gitignore"
|
119
119
|
- ".rspec"
|
120
120
|
- ".travis.yml"
|
121
|
+
- ".yardopts"
|
121
122
|
- CODE_OF_CONDUCT.md
|
122
123
|
- Gemfile
|
123
124
|
- LICENSE.txt
|
@@ -191,7 +192,7 @@ licenses:
|
|
191
192
|
- MIT
|
192
193
|
metadata: {}
|
193
194
|
post_install_message: "\n(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n
|
194
|
-
\ Yard-Lucid 0.
|
195
|
+
\ Yard-Lucid 0.2.0 has been installed.\n(::) (::) (::) (::) (::) (::) (::) (::)
|
195
196
|
(::) (::) (::) (::)\n "
|
196
197
|
rdoc_options: []
|
197
198
|
require_paths:
|