Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
ruby: [2.6, 2.7, '3.0', 3.1]
ruby: [3.1, 3.2, 3.3, 3.4]

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@

# rspec failure tracking
.rspec_status
.idea
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.1.2] - 2025-12-15
- Fix `File.exists?` bug in Ruby 3.2+

## [0.1.1] - 2022-05-31
### Added
- Respect the title given for the root directory name in mkdocs navigation
Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:

Check failure on line 3 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L3

yard Warning Message: https://github.com/advisories/GHSA-8mq4-9jjh-9xrc CVE: CVE-2024-27285 Severity: medium
yard-to_mkdocs (0.1.1)
yard-to_mkdocs (0.1.2)
yard

GEM
Expand All @@ -21,12 +21,13 @@
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)

Check failure on line 24 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L24

webrick Warning Message: https://github.com/advisories/GHSA-6f62-3596-g6w7 CVE: CVE-2024-47220 Severity: high

Check failure on line 24 in Gemfile.lock

View check run for this annotation

Security Scanner as a Service / Bundle Audit

Gemfile.lock#L24

webrick Warning Message: https://github.com/advisories/GHSA-r995-q44h-hr64 CVE: CVE-2025-6442 Severity: medium
webrick (1.7.0)
yard (0.9.27)
webrick (~> 1.7.0)

PLATFORMS
arm64-darwin-24
x86_64-darwin-20
x86_64-linux

Expand All @@ -36,4 +37,4 @@
yard-to_mkdocs!

BUNDLED WITH
2.2.29
4.0.1
2 changes: 1 addition & 1 deletion lib/yard/to_mkdocs/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def init

mkdocs_file_path = File.expand_path('../../mkdocs.yml', options.serializer.basepath)
root_path = options.serializer.basepath.split('/')[1..-1].join('/')
if File.exists?(mkdocs_file_path)
if File.exist?(mkdocs_file_path)
mkdocs_yaml = YAML.load_file(mkdocs_file_path)
mkdocs_nav = mkdocs_yaml['nav'].reject { |item| item["YARD Docs"] }
mkdocs_yaml['nav'] = mkdocs_nav + [{ options[:title] => mkdocs_nav_tree(objects.first, root_path) }]
Expand Down
2 changes: 1 addition & 1 deletion lib/yard/to_mkdocs/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module YARD
module ToMkdocs
VERSION = "0.1.1"
VERSION = "0.1.2"
end
end