Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
74828ab8
Commit
74828ab8
authored
Oct 01, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Guardfile
parent
e157eb6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Guardfile
Guardfile
+3
-2
readme.rb
src/main/ruby/readme.rb
+3
-2
No files found.
Guardfile
View file @
74828ab8
require
'asciidoctor'
require
'asciidoctor'
require
'erb'
require
'erb'
require
'./src/main/ruby/readme.rb'
options
=
{
:mkdirs
=>
true
,
:safe
=>
:unsafe
,
:attributes
=>
'linkcss'
}
options
=
{
:mkdirs
=>
true
,
:safe
=>
:unsafe
,
:attributes
=>
'linkcss'
}
guard
'shell'
do
guard
'shell'
do
watch
(
/^[A-Za-z].*\.adoc$/
)
{
|
m
|
watch
(
/^
src\/
[A-Za-z].*\.adoc$/
)
{
|
m
|
Asciidoctor
.
render_file
(
'src/main/asciidoc/README.adoc'
,
options
.
merge
(
:to_file
=>
'./README.md'
)
)
SpringCloud
::
Build
.
render_file
(
'src/main/asciidoc/README.adoc'
,
:to_file
=>
'./README.adoc'
)
Asciidoctor
.
render_file
(
'src/main/asciidoc/spring-cloud-netflix.adoc'
,
options
.
merge
(
:to_dir
=>
'target/generated-docs'
))
Asciidoctor
.
render_file
(
'src/main/asciidoc/spring-cloud-netflix.adoc'
,
options
.
merge
(
:to_dir
=>
'target/generated-docs'
))
}
}
end
end
src/main/ruby/readme.rb
View file @
74828ab8
...
@@ -41,8 +41,9 @@ module SpringCloud
...
@@ -41,8 +41,9 @@ module SpringCloud
unless
options
[
:to_file
]
unless
options
[
:to_file
]
puts
out
puts
out
else
else
writer
=
File
.
new
(
options
[
:to_file
],
'w+'
)
File
.
open
(
options
[
:to_file
],
'w+'
)
do
|
file
|
out
.
each
{
|
line
|
writer
.
write
(
line
)
}
out
.
each
{
|
line
|
file
.
write
(
line
)
}
end
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment