mirror of
https://github.com/danog/sass-site.git
synced 2024-11-26 20:14:53 +01:00
Make the Sass documentation path "source/documentation".
This commit is contained in:
parent
a921b554f4
commit
c0904e8387
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@
|
||||
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
|
||||
|
||||
/.sass
|
||||
/source/assets/doc
|
||||
/source/documentation
|
||||
/data/version.yml
|
||||
|
||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
8
Rakefile
8
Rakefile
@ -38,10 +38,10 @@ end
|
||||
|
||||
task :sass_docs => :sass do
|
||||
Dir.chdir(".sass") {bundle %{exec rake doc}}
|
||||
sh %{rm -rf source/assets/doc}
|
||||
sh %{cp -r .sass/doc source/assets/doc}
|
||||
sh %{find source/assets/doc -name '*.html' } +
|
||||
%{-exec sed 's/css\\/common\\.css/..\\/stylesheets\\/docs.css/g' -i {} \\;}
|
||||
sh %{rm -rf source/documentation}
|
||||
sh %{cp -r .sass/doc source/documentation}
|
||||
sh %{find source/documentation -name '*.html' } +
|
||||
%{-exec sed 's/css\\/common\\.css/..\\/assets\\/stylesheets\\/docs.css/g' -i {} \\;}
|
||||
end
|
||||
|
||||
desc "Import information from Sass."
|
||||
|
@ -60,7 +60,7 @@ with_layout :styleguide do
|
||||
#@styleguide = Kss::Parser.new('source/css')
|
||||
end
|
||||
|
||||
page "/assets/doc/*", :directory_index => false
|
||||
page "/documentation/*", :directory_index => false
|
||||
|
||||
|
||||
|
||||
|
@ -3,6 +3,6 @@ title: Documentation
|
||||
---
|
||||
|
||||
:markdown
|
||||
[Changelog](/assets/doc/file.SASS_CHANGELOG.html),
|
||||
[reference](/assets/doc/file.SASS_REFERENCE.html),
|
||||
[API docs](/assets/doc/).
|
||||
[Changelog](/documentation/file.SASS_CHANGELOG.html),
|
||||
[reference](/documentation/file.SASS_REFERENCE.html),
|
||||
[API docs](/documentation/).
|
||||
|
Loading…
Reference in New Issue
Block a user