- Change the WAR baseFolder context parameter to a JNDI env-entry to improve enterprise deployments
- Removed internal Gitblit ref exclusions in the upload pack
- Removed "show readme" setting in favor of automatic detection
+ - README files are not shown on the summary page by default, this can be changed with web.summaryShowReadme
- Support plain text, markdown, confluence, mediawiki, textile, tracwiki, or twiki "readme" files
- Determine best commit id (e.g. "master") for the tree and docs pages and use that in links
- By default GO will now bind to all interfaces for both http and https connectors. This simplifies setup for first-time users.
- { name: 'git.mirrorPeriod', defaultValue: '30 mins' }
- { name: 'web.commitMessageRenderer', defaultValue: 'plain' }
- { name: 'web.showBranchGraph', defaultValue: 'true' }
+ - { name: 'web.summaryShowReadme', defaultValue: 'false' }
- { name: 'server.redirectToHttpsPort', defaultValue: 'true' }
contributors:
- James Moger
# SINCE 0.5.0\r
web.summaryRefsCount = 5\r
\r
+# Show a README file, if available, on the summary page.\r
+#\r
+# SINCE 1.4.0\r
+web.summaryShowReadme = false\r
+\r
# The number of items to show on a page before showing the first, prev, next\r
# pagination links. A default of 50 is used for any invalid value.\r
#\r
# SINCE 1.3.0\r
web.reflogChangesPerPage = 10\r
\r
+# Specify the names of documents in the root of your repository to be displayed\r
+# in tabs on your repository docs page. If the name is not found in the root\r
+# then no tab is added. The order specified is the order displayed. Do not\r
+# specify a file extension as the aggregation of markup extensions + txt are used\r
+# in the search algorithm.\r
+#\r
+# SPACE-DELIMITED\r
+# SINCE 1.4.0\r
+web.documents = readme home index changelog contributing submitting_patches copying license notice authors\r
+\r
# Registered file extensions to ignore during Lucene indexing\r
#\r
# SPACE-DELIMITED\r
add(new TagsPanel("tagsPanel", repositoryName, r, numberRefs).hideIfEmpty());\r
add(new BranchesPanel("branchesPanel", getRepositoryModel(), r, numberRefs, false).hideIfEmpty());\r
\r
- RevCommit head = JGitUtils.getCommit(r, null);\r
- MarkupProcessor processor = new MarkupProcessor(GitBlit.getSettings());\r
- MarkupDocument markupDoc = processor.parseReadme(r, repositoryName, getBestCommitId(head));\r
- if (markupDoc.markup == null) {\r
- add(new Label("readme").setVisible(false));\r
+ if (GitBlit.getBoolean(Keys.web.summaryShowReadme, false)) {\r
+ // show a readme on the summary page\r
+ RevCommit head = JGitUtils.getCommit(r, null);\r
+ MarkupProcessor processor = new MarkupProcessor(GitBlit.getSettings());\r
+ MarkupDocument markupDoc = processor.parseReadme(r, repositoryName, getBestCommitId(head));\r
+ if (markupDoc == null || markupDoc.markup == null) {\r
+ add(new Label("readme").setVisible(false));\r
+ } else {\r
+ Fragment fragment = new Fragment("readme", MarkupSyntax.PLAIN.equals(markupDoc.syntax) ? "plaintextPanel" : "markdownPanel", this);\r
+ fragment.add(new Label("readmeFile", markupDoc.documentPath));\r
+ // Add the html to the page\r
+ Component content = new Label("readmeContent", markupDoc.html).setEscapeModelStrings(false);\r
+ fragment.add(content.setVisible(!StringUtils.isEmpty(markupDoc.html)));\r
+ add(fragment);\r
+ }\r
} else {\r
- Fragment fragment = new Fragment("readme", MarkupSyntax.PLAIN.equals(markupDoc.syntax) ? "plaintextPanel" : "markdownPanel", this);\r
- fragment.add(new Label("readmeFile", markupDoc.documentPath));\r
- // Add the html to the page\r
- Component content = new Label("readmeContent", markupDoc.html).setEscapeModelStrings(false);\r
- fragment.add(content.setVisible(!StringUtils.isEmpty(markupDoc.html)));\r
- add(fragment);\r
+ // global, no readme on summary page\r
+ add(new Label("readme").setVisible(false));\r
}\r
\r
// Display an activity line graph\r