-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe45c71
commit 14c1c45
Showing
3 changed files
with
37 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Jocasta | ||
![Gem](https://img.shields.io/gem/v/jocasta.svg) | ||
|
||
|
||
Utility to extract a section of a Markdown file and write it into a separate file. | ||
|
||
## Installation | ||
|
||
`gem install jocasta` | ||
|
||
## Usage | ||
|
||
`jocasta [input] [output] [level] [section] [...options]` | ||
|
||
* __input__ - input markdown file. | ||
* __output__ - Markdown file that will be written. | ||
* __level__ - Level of the section to be extracted (`# Level1` `## Level2` `### Level3`) | ||
* __section__ - Section to be extracted. It will also extract sub-sections inside this section. | ||
|
||
Options: | ||
* __--title__ - Title that will replace the section title in the output file. If none, it will use the same title. | ||
|
||
Named after [Jocasta Nu](https://starwars.fandom.com/wiki/Jocasta_Nu) from Star Wars. | ||
Based on script made by [ReSwift](https://github.com/ReSwift/ReSwift/blob/master/.scripts/doc-preprocessor) |
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 |
---|---|---|
|
@@ -2,12 +2,14 @@ Gem::Specification.new do |s| | |
s.name = 'jocasta' | ||
s.version = '0.0.1' | ||
s.date = '2019-07-24' | ||
s.summary = "Ruby gem to extract sections of a Markdown file into a separate file." | ||
s.description = "Ruby gem to extract sections of a Markdown file into a separate file." | ||
s.summary = "Utility to extract a section of a Markdown file and write it into a separate file." | ||
s.authors = ["Duarte Pinto"] | ||
s.email = '[email protected]' | ||
s.executables << 'jocasta' | ||
s.homepage = | ||
'https://rubygems.org/gems/jocasta' | ||
s.license = 'Apache-2.0' | ||
s.homepage = 'https://rubygems.org/gems/jocasta' | ||
s.license = 'Apache-2.0' | ||
s.metadata = { | ||
"source_code_uri" => "https://github.com/duartepinto/jocasta", | ||
"bug_tracker_uri" => "https://github.com/duartepinto/jocasta/issues" | ||
} | ||
end |