Top Level Namespace
Defined Under Namespace
Modules: AspecRb, Context, Index, Labels, Search, Sform
Classes: MultipageHtml5Converter
Constant Summary
collapse
- RexRx =
/(?<=<<)(Req-\w+-?.+?)(?=>>)/
- AnchorRx =
/\[\[(?:|([\w+?_:][\w+?:.-]*)(?:, *(.+))?)\]\]/
- ImageRx =
/^(\.\S\w+)/
- SectitleRx =
/^(\=+\s+?\S+.+)/
- XrefRx =
/\<\<(?!Req)(.+?)\>\>/
%r(^\/{4,}$)
%r{^//(?=[^/]|$)}
Instance Method Summary
collapse
Instance Method Details
#add_heading(subsection, url, level) ⇒ Object
11
12
13
14
15
|
# File 'lib/postprocessors/fulltext_search.rb', line 11
def add_heading(subsection, url, level)
id = subsection.at(level).attr('id')
sub_url = url + '#' + id
@json << Search.add_to_index(sub_url, id, subsection.at(level).text, subsection.text)
end
|
#trim(s) ⇒ Object
21
22
23
24
|
# File 'lib/extensions/requirement_appendix.rb', line 21
def trim(s)
s.gsub!(/chapters\//, '')
s.gsub!(/(\.adoc|\.md|\.html)/, '')
end
|