Permalink
Browse files

update to latest sbt-site plugin, generate pdf

  • Loading branch information...
1 parent ca8bfe2 commit b2f155fab6c24772c039c8101564dc07124152ee @harrah committed Nov 9, 2012
Showing with 44 additions and 2 deletions.
  1. +6 −1 project/Docs.scala
  2. +1 −1 project/p.sbt
  3. +7 −0 src/sphinx/conf.py
  4. +1 −0 src/sphinx/index.rst
  5. +29 −0 src/sphinx/pdf_index.rst
View
@@ -12,6 +12,7 @@
object Docs
{
val cnameFile = SettingKey[File]("cname-file", "Location of the CNAME file for the website.")
+
val SnapshotPath = "snapshot"
val ReleasePath = "release"
val DocsPath = "docs"
@@ -24,7 +25,11 @@ object Docs
site.sphinxSupport(DocsPath) ++
site.includeScaladoc("api") ++
siteIncludeSxr("sxr") ++
- ghPagesSettings
+ ghPagesSettings ++
+ Seq(
+ SphinxSupport.sphinxIncremental in SphinxSupport.Sphinx := true,
+ SphinxSupport.enableOutput in SphinxSupport.generatePdf := true
+ )
def ghPagesSettings = ghpages.settings ++ Seq(
git.remoteRepo := "git@github.com:sbt/sbt.github.com.git",
View
@@ -3,7 +3,7 @@ libraryDependencies ++= Seq(
"org.jsoup" % "jsoup" % "1.7.1"
)
-addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.6.0")
+addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.7.0-M1")
resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven"
View
@@ -46,6 +46,13 @@
# passes variables to the template
html_context = {'home_site': home_site, 'site_search_base': site_search_base}
+# Latex (PDF)
+
+pdf_index = 'pdf_index'
+latex_documents = [
+ (pdf_index, 'sbt.tex', html_title, '', 'manual', True),
+]
+
# Issues role
issuetracker = 'github'
View
@@ -34,3 +34,4 @@ the :doc:`index of names and types <Name-Index>`.
Dormant/Dormant
Community/ChangeSummary_0.12.0
Community/Repository-Rules
+ pdf_index
View
@@ -0,0 +1,29 @@
+To get started, read the :doc:`Getting Started Guide </Getting-Started/Welcome>`.
+Further topics are presented in detail in the :doc:`Detailed Topics </Detailed-Topics/index>`,
+:doc:`Howto </Howto/index>`, and :doc:`Extending sbt </Extending/index>` sections.
+
+See also the :doc:`index of names and types <Name-Index>`.
+
+.. toctree::
+ :maxdepth: 2
+
+ Getting-Started/index
+ Detailed-Topics/index
+ Examples/index
+ Howto/index
+ faq
+ Community/index
+ Extending/index
+ Name-Index
+
+
+.. The following includes documents that are not important enough to be in a visible toctree
+ They are linked from other documents, which is enough.
+
+.. toctree::
+ :maxdepth: 0
+ :hidden:
+
+ Dormant/Dormant
+ Community/ChangeSummary_0.12.0
+ Community/Repository-Rules

0 comments on commit b2f155f

Please sign in to comment.