-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RAML now has trailing slashes manually appended to all paths
Signed-off-by: Bill Robinson <dseevr@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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
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,5 @@ | ||
FROM ruby:2.4.0-slim | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get -y install build-essential && gem install nokogiri |
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,19 @@ | ||
#!/usr/bin/env ruby | ||
# encoding: utf-8 | ||
|
||
require "nokogiri" | ||
|
||
FILENAME = "docs/contiv.html" | ||
|
||
doc = Nokogiri::HTML(File.read(FILENAME)) | ||
|
||
node_groups = [ | ||
doc.css(".panel-title a").select { |n| n.text.start_with?("/") }, | ||
doc.css(".modal-title"), | ||
] | ||
|
||
node_groups.flatten.each do |node| | ||
node.children.last.content = node.children.last.text + "/" | ||
end | ||
|
||
File.write(FILENAME, doc.to_html) |