yard-to_mkdocs 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3693d6c4408be440131ec7df34df4b55f6cb7be3670f06afbfc7b6cbf0b74db
4
- data.tar.gz: 97c764d90cf1643f0df825968d8233b958d20e96a103d1e29150856056fa532d
3
+ metadata.gz: 06f16153b27f1affa449a6b0fcd189a12d1bf092ca3d867a1837b5134b21ee1f
4
+ data.tar.gz: 1f790f55e1ba7941eec184f190c4e3667ffb7d03dee2967db6e7ed552652e565
5
5
  SHA512:
6
- metadata.gz: bd701f35a05b517cc636126ac29196a523d8e0678cd5a8b3711a82ba023d18504bc70cf5cf4f3395eecc92f7bd9c2e3066eddefdc683db6a80989f8042afaf91
7
- data.tar.gz: fa29f52d8f61d5a5b68025486d86be9b1a2914fb0946ad6def89258130bfa0a62a5d38693b72e0915deb59047b3d21692e225b5392b206d7947b9dcce81f7641
6
+ metadata.gz: b28dc98d69ef6b2f4bde495fa4c715804998fed6a90d009522dabc27485111feac15d9bf425d080cb64602d15b352851350de1101bc8f358720ac8b818b532b3
7
+ data.tar.gz: 2ee225e2068965eecaa19d401fdd0873d3ae9d7fe808452aea6944e6dcfa59c96d16ddf223e532fb0409d1623f49bf7fe139978924d1bc697899747a39255709
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
- ## [Unreleased]
1
+ # Changelog for `yard-to_mkdocs`
2
+ All notable changes to this project will be documented in this file.
2
3
 
3
- ## [0.1.0] - 2022-05-09
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+
8
+ ## [0.1.1] - 2022-05-31
9
+ ### Added
10
+ - Respect the title given for the root directory name in mkdocs navigation
4
11
 
12
+ ### Removed
13
+ - Removed hardcoding of output directory to allow for multiple renderings
14
+
15
+ ## [0.1.0] - 2022-05-09
5
16
  - Initial release
17
+
18
+ [0.1.1]: https://github.com/Invoca/yard-to_mkdocs/compare/v0.1.0...v0.1.1
19
+ [0.1.0]: https://github.com/Invoca/yard-to_mkdocs/releases/tag/v0.1.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yard-to_mkdocs (0.1.0)
4
+ yard-to_mkdocs (0.1.1)
5
5
  yard
6
6
 
7
7
  GEM
@@ -28,6 +28,7 @@ GEM
28
28
 
29
29
  PLATFORMS
30
30
  x86_64-darwin-20
31
+ x86_64-linux
31
32
 
32
33
  DEPENDENCIES
33
34
  rake (~> 13.0)
@@ -5,7 +5,6 @@ require 'yaml'
5
5
  include Helpers::ModuleHelper
6
6
 
7
7
  def init
8
- options.serializer.basepath = 'docs/yard_docs'
9
8
  options.serializer.extension = 'md'
10
9
 
11
10
  options.objects = objects = run_verifier(options.objects)
@@ -29,10 +28,11 @@ def init
29
28
  end
30
29
 
31
30
  mkdocs_file_path = File.expand_path('../../mkdocs.yml', options.serializer.basepath)
31
+ root_path = options.serializer.basepath.split('/')[1..-1].join('/')
32
32
  if File.exists?(mkdocs_file_path)
33
33
  mkdocs_yaml = YAML.load_file(mkdocs_file_path)
34
34
  mkdocs_nav = mkdocs_yaml['nav'].reject { |item| item["YARD Docs"] }
35
- mkdocs_yaml['nav'] = mkdocs_nav + [{ "YARD Docs" => mkdocs_nav_tree(objects.first) }]
35
+ mkdocs_yaml['nav'] = mkdocs_nav + [{ options[:title] => mkdocs_nav_tree(objects.first, root_path) }]
36
36
  File.open(mkdocs_file_path, 'w') { |f| f.write(mkdocs_yaml.to_yaml) }
37
37
  end
38
38
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module YARD
4
4
  module ToMkdocs
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-to_mkdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Octothope
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-14 00:00:00.000000000 Z
11
+ date: 2022-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard