Skip to content

Commit

Permalink
Bump version to v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericpig committed Jun 16, 2021
1 parent f9978a9 commit 47d673f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
# Changelog | YardGhurt

Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
All notable changes to this project will be documented in this file.

Format is based on [Keep a Changelog v1.0.0](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).

## [[Unreleased]](https://github.com/esotericpig/yard_ghurt/compare/v1.2.1...HEAD)
-


## [v1.2.1] - 2021-06-16
### Fixed
- Fixed to work with YARD v0.9.25+
- From v0.9.25, YARD changed to use RedCarpert's method of trying to create GitHub-style anchor links. RedCarpet does NOT match GitHub's algorithm exactly, so it all got messed up. I changed the code to grab the new `id="..."` field from `<h\d+...` tags and use that as the YARD ID. I tried recreating RedCarpert's C code (`rndr_header_anchor()` in `ext/redcarpet/html.c`) but this failed miserably, so resorted to just this. All that matters is that it works!

### Changed
- Formatted code using RuboCop.

## [[Unreleased]](https://github.com/esotericpig/yard_ghurt/compare/v1.2.0...master)

## [v1.2.0] - 2020-02-29
### Added
Expand All @@ -18,6 +32,7 @@ Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- In AnchorLinks, don't use obsolete method URI.escape()/encode()
- This outputted a lot of warnings


## [v1.1.0] - 2019-07-31
### Added
- Added environment var *dryrun* to GFMFixTask:
Expand All @@ -30,6 +45,7 @@ Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- lib/yard_ghurt/ghp_syncer_task.rb => lib/yard_ghurt/ghp_sync_task.rb
- Updated development dependency gems


## [v1.0.1] - 2019-07-28
### Changed
- Some minor comments/doc
Expand All @@ -38,6 +54,7 @@ Format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- In GFMFixerTask, ignore empty lines


## [v1.0.0] - 2019-07-23
### Added
- .gitignore
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ YardGhurt::GFMFixTask.new() do |task|
task.fix_code_langs = true
task.md_files = ['index.html']

task.before = Proc.new() do |task,args|
task.before = Proc.new() do |t2,args|
# Delete this file as it's never used (index.html is an exact copy)
YardGhurt.rm_exist(File.join(task.doc_dir,'file.README.html'))
YardGhurt.rm_exist(File.join(t2.doc_dir,'file.README.html'))

# Root dir of my GitHub Page for CSS/JS
GHP_ROOT_DIR = YardGhurt.to_bool(args.dev) ? '../../esotericpig.github.io' : '../../..'
ghp_root_dir = YardGhurt.to_bool(args.dev) ? '../../esotericpig.github.io' : '../../..'

task.css_styles << %Q(<link rel="stylesheet" type="text/css" href="#{GHP_ROOT_DIR}/css/prism.css" />)
task.js_scripts << %Q(<script src="#{GHP_ROOT_DIR}/js/prism.js"></script>)
t2.css_styles << %Q(<link rel="stylesheet" type="text/css" href="#{ghp_root_dir}/css/prism.css" />)
t2.js_scripts << %Q(<script src="#{ghp_root_dir}/js/prism.js"></script>)
end
end
```
Expand Down
2 changes: 1 addition & 1 deletion lib/yard_ghurt/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@


module YardGhurt
VERSION = '1.2.0'
VERSION = '1.2.1'
end

0 comments on commit 47d673f

Please sign in to comment.