Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
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
edx
edx-platform
Commits
bcb5eda2
Commit
bcb5eda2
authored
Dec 21, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1190 from MITx/fix/alex/opendocs_linux
Fix/alex/opendocs linux
parents
8532d79e
cc76e051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
rakefile
+12
-6
No files found.
rakefile
View file @
bcb5eda2
...
...
@@ -169,7 +169,7 @@ Dir["common/lib/*"].select{|lib| File.directory?(lib)}.each do |lib|
TEST_TASK_DIRS
<<
lib
desc
"Run tests for common lib
#{
lib
}
(without coverage)"
task
"fasttest_
#{
lib
}
"
do
task
"fasttest_
#{
lib
}
"
do
sh
(
"nosetests
#{
lib
}
"
)
end
...
...
@@ -309,16 +309,22 @@ task :builddocs do
end
end
desc
"Show doc
in browser (mac only for now) TODO add linux support
"
desc
"Show doc
s in browser (mac and ubuntu).
"
task
:showdocs
do
Dir
.
chdir
(
'docs/build/html'
)
do
sh
(
'open index.html'
)
if
RUBY_PLATFORM
.
include?
'darwin'
# mac os
sh
(
'open index.html'
)
elsif
RUBY_PLATFORM
.
include?
'linux'
# make more ubuntu specific?
sh
(
'sensible-browser index.html'
)
# ubuntu
else
raise
"
\n
Undefined how to run browser on your machine.
Please use 'rake builddocs' and then manually open
'mitx/docs/build/html/index.html."
end
end
end
desc
"Build docs and show them in browser"
task
:doc
=>
:builddocs
do
Dir
.
chdir
(
'docs/build/html'
)
do
sh
(
'open index.html'
)
end
Rake
::
Task
[
"showdocs"
].
invoke
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