cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject cayenne-website git commit: Separate title for docs in menu
Date Thu, 04 Jan 2018 10:12:09 GMT
Repository: cayenne-website
Updated Branches:
  refs/heads/master 87fd4b19c -> 172cd6f2a


Separate title for docs in menu


Project: http://git-wip-us.apache.org/repos/asf/cayenne-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-website/commit/172cd6f2
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-website/tree/172cd6f2
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-website/diff/172cd6f2

Branch: refs/heads/master
Commit: 172cd6f2a04cb2db41f36a665b530433ac4d04ac
Parents: 87fd4b1
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Thu Jan 4 13:12:02 2018 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Thu Jan 4 13:12:02 2018 +0300

----------------------------------------------------------------------
 src/main/site/content/docs/4.1/cayenne-guide.html            | 3 ++-
 src/main/site/content/docs/4.1/getting-started-db-first.html | 1 +
 src/main/site/content/docs/4.1/getting-started-guide.html    | 3 ++-
 src/main/site/content/docs/4.1/getting-started-rop.html      | 1 +
 src/main/site/layouts/partials/docs_header.html              | 4 ++--
 5 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/172cd6f2/src/main/site/content/docs/4.1/cayenne-guide.html
----------------------------------------------------------------------
diff --git a/src/main/site/content/docs/4.1/cayenne-guide.html b/src/main/site/content/docs/4.1/cayenne-guide.html
index 2033097..48edb9e 100644
--- a/src/main/site/content/docs/4.1/cayenne-guide.html
+++ b/src/main/site/content/docs/4.1/cayenne-guide.html
@@ -1247,7 +1247,8 @@ compileJava.dependsOn cgen</code></pre>
     <div class="listingblock"> 
      <div class="content"> 
       <pre class="highlight"><code class="language-java java" data-lang="java">Module
extensions = binder -&gt;
-      ServerModule.contributeProperties(binder).put(Constants.SERVER_EXTERNAL_TX_PROPERTY,
"true");
+      ServerModule.contributeProperties(binder)
+            .put(Constants.SERVER_EXTERNAL_TX_PROPERTY, "true");
 ServerRuntime runtime = ServerRuntime.builder()
       .addConfig("com/example/cayenne-project.xml")
       .addModule(extensions)

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/172cd6f2/src/main/site/content/docs/4.1/getting-started-db-first.html
----------------------------------------------------------------------
diff --git a/src/main/site/content/docs/4.1/getting-started-db-first.html b/src/main/site/content/docs/4.1/getting-started-db-first.html
index a6bc7a0..4938a98 100644
--- a/src/main/site/content/docs/4.1/getting-started-db-first.html
+++ b/src/main/site/content/docs/4.1/getting-started-db-first.html
@@ -19,6 +19,7 @@
 title: "Cayenne Database First tutorial"
 description: "Tutorial how to quick start new Cayenne project from existing database"
 cayenneVersion: "4.1"
+docsMenuTitle: "Database First Tutorial"
 weight: 30
 menu:
     footer:

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/172cd6f2/src/main/site/content/docs/4.1/getting-started-guide.html
----------------------------------------------------------------------
diff --git a/src/main/site/content/docs/4.1/getting-started-guide.html b/src/main/site/content/docs/4.1/getting-started-guide.html
index 63703de..e830c9f 100644
--- a/src/main/site/content/docs/4.1/getting-started-guide.html
+++ b/src/main/site/content/docs/4.1/getting-started-guide.html
@@ -18,8 +18,9 @@
 
 title: "Cayenne Getting Started Guide"
 description: "Tutorial how to quick start new Cayenne project"
-cayenneVersion: "4.1"
 weight: 20
+docsMenuTitle: "Getting Started"
+cayenneVersion: "4.1"
 menu:
     footer:
         weight: 10

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/172cd6f2/src/main/site/content/docs/4.1/getting-started-rop.html
----------------------------------------------------------------------
diff --git a/src/main/site/content/docs/4.1/getting-started-rop.html b/src/main/site/content/docs/4.1/getting-started-rop.html
index ab3511a..4c939c0 100644
--- a/src/main/site/content/docs/4.1/getting-started-rop.html
+++ b/src/main/site/content/docs/4.1/getting-started-rop.html
@@ -19,6 +19,7 @@
 title: "Cayenne Getting Started ROP"
 description: "Tutorial how to quick start new Cayenne ROP project"
 cayenneVersion: "4.1"
+docsMenuTitle: "Getting Started ROP"
 weight: 40
 ---
 <div id="preamble"> 

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/172cd6f2/src/main/site/layouts/partials/docs_header.html
----------------------------------------------------------------------
diff --git a/src/main/site/layouts/partials/docs_header.html b/src/main/site/layouts/partials/docs_header.html
index a33c038..0b7665e 100644
--- a/src/main/site/layouts/partials/docs_header.html
+++ b/src/main/site/layouts/partials/docs_header.html
@@ -53,13 +53,13 @@
                     {{- if eq .Params.cayenneVersion $docVersion }}
                     <div class="cd-toc-item">
                         {{ if eq $currentPageURL .URL }}
-                        <span class="cd-toc-link active">{{ .Title }}</span>
+                        <span class="cd-toc-link active">{{ if .Params.docsMenuTitle
}}{{ .Params.docsMenuTitle }}{{ else }}{{ .Title }}{{ end }}</span>
                             {{- $tocFile := printf "content/docs/%s/%s.toc.html" $docVersion
.File.BaseFileName -}}
                             {{- if (fileExists $tocFile) -}}
                                 {{ readFile $tocFile | safeHTML }}
                             {{- end -}}
                         {{ else }}
-                            <a class="cd-toc-link" href="{{ .URL }}">{{ .Title }}</a>
+                            <a class="cd-toc-link" href="{{ .URL }}">{{ if .Params.docsMenuTitle
}}{{ .Params.docsMenuTitle }}{{ else }}{{ .Title }}{{ end }}</a>
                         {{ end }}
                     </div>
                     {{ end -}}


Mime
View raw message