Make the Sass documentation path "source/documentation".

This commit is contained in:
Nathan Weizenbaum 2013-10-12 16:11:36 -04:00
parent a921b554f4
commit c0904e8387
4 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@ -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.

View File

@ -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."

View File

@ -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

View File

@ -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/).