diff --git a/.gitignore b/.gitignore index bf41091..99b75a1 100644 --- a/.gitignore +++ b/.gitignore @@ -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. diff --git a/Rakefile b/Rakefile index 6d09a9b..e8aa138 100644 --- a/Rakefile +++ b/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." diff --git a/config.rb b/config.rb index e33de83..a2c860a 100644 --- a/config.rb +++ b/config.rb @@ -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 diff --git a/source/documentation.haml b/source/documentation.haml index a85e0ce..36a5259 100644 --- a/source/documentation.haml +++ b/source/documentation.haml @@ -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/).