├── .bazelversion ├── fake_pom_install.xml ├── tools ├── gitiles.importorder ├── workspace-status.sh ├── bazlets.bzl ├── eclipse │ ├── BUILD │ └── project.sh ├── maven │ ├── BUILD │ └── mvn.sh ├── stamper.bzl ├── gitiles-dev.launch ├── run_dev.sh └── BUILD ├── resources ├── BUILD ├── com │ └── google │ │ └── gitiles │ │ ├── mime-types.properties │ │ ├── static │ │ └── prettify │ │ │ └── prettify.css │ │ ├── BUILD │ │ └── templates │ │ ├── Error.soy │ │ ├── DiffDetail.soy │ │ ├── RefList.soy │ │ ├── HostIndex.soy │ │ ├── RevisionDetail.soy │ │ ├── PathDetail.soy │ │ ├── BlameDetail.soy │ │ └── Doc.soy └── web.xml ├── .gitignore ├── .mailmap ├── .settings ├── org.eclipse.core.resources.prefs └── org.eclipse.jdt.ui.prefs ├── navbar.md ├── version.bzl ├── lib ├── junit │ └── BUILD ├── slf4j │ └── BUILD ├── truth │ └── BUILD ├── soy │ └── BUILD ├── guice │ └── BUILD ├── BUILD ├── jgit │ └── BUILD └── jetty │ └── BUILD ├── .bazelrc ├── BUILD ├── fake_pom_deploy.xml ├── java └── com │ └── google │ └── gitiles │ ├── blame │ ├── cache │ │ ├── BUILD │ │ ├── BlameCache.java │ │ └── Region.java │ └── RegionAdapter.java │ ├── dev │ ├── BUILD │ └── Main.java │ ├── doc │ ├── TocBlock.java │ ├── IframeBlock.java │ ├── html │ │ ├── StreamHtmlBuilder.java │ │ └── SoyHtmlBuilder.java │ ├── RuntimeIOException.java │ ├── BlockNote.java │ ├── SmartQuoted.java │ ├── NamedAnchor.java │ ├── MultiColumnBlock.java │ ├── HtmlSanitizer.java │ ├── SoyConstants.java │ ├── MarkdownUtil.java │ ├── GitilesMarkdown.java │ ├── TocExtension.java │ ├── GitHubThematicBreakExtension.java │ ├── NamedAnchorExtension.java │ ├── SmartQuotedExtension.java │ ├── PathResolver.java │ ├── ImageLoader.java │ └── BlockNoteExtension.java │ ├── RepositoryDescription.java │ ├── FileJsonData.java │ ├── ThreadSafePrettifyParser.java │ ├── BUILD │ ├── AbstractHttpFilter.java │ ├── TagSoyData.java │ ├── MimeTypes.java │ ├── DefaultUrls.java │ ├── DefaultRenderer.java │ ├── PathUtil.java │ ├── DebugRenderer.java │ ├── TreeJsonData.java │ ├── GitilesConfig.java │ ├── FormatType.java │ ├── GitilesUrls.java │ ├── RepositoryFilter.java │ ├── TimeCache.java │ ├── CommentLinkInfo.java │ ├── DateFormatter.java │ ├── IdentRevFilter.java │ ├── VisibilityChecker.java │ ├── GitilesAccess.java │ ├── ArchiveFormat.java │ ├── ReadmeHelper.java │ ├── ArchiveServlet.java │ └── RootedDocServlet.java ├── README.md ├── javatests └── com │ └── google │ └── gitiles │ ├── BUILD │ ├── TestGitilesUrls.java │ ├── MoreAssert.java │ ├── DefaultErrorHandlingFilterTest.java │ ├── PathsTest.java │ ├── doc │ └── PathResolverTest.java │ ├── GitilesUrlsTest.java │ ├── blame │ └── BlameServletTest.java │ ├── ConfigUtilTest.java │ ├── TreeSoyDataTest.java │ ├── VisibilityCheckerTest.java │ ├── TestGitilesAccess.java │ ├── DateFormatterTest.java │ └── TestGitilesServlet.java └── Documentation ├── config.md └── developer-guide.md /.bazelversion: -------------------------------------------------------------------------------- 1 | 3.1.0 2 | -------------------------------------------------------------------------------- /fake_pom_install.xml: -------------------------------------------------------------------------------- 1 | fake_pom_deploy.xml -------------------------------------------------------------------------------- /tools/gitiles.importorder: -------------------------------------------------------------------------------- 1 | #Organize Import Order 2 | #Fri Aug 19 16:08:40 EDT 2016 3 | 0= 4 | -------------------------------------------------------------------------------- /resources/BUILD: -------------------------------------------------------------------------------- 1 | filegroup( 2 | name = "web_xml", 3 | srcs = ["web.xml"], 4 | visibility = ["//visibility:public"], 5 | ) 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.classpath 2 | /.project 3 | /.settings 4 | /eclipse-out 5 | /gitiles.config 6 | /.idea 7 | *.iml 8 | *~ 9 | /bazel-bin 10 | /bazel-gitiles 11 | /bazel-out 12 | /bazel-testlogs 13 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | Even Stensberg ev1stensberg 2 | Shawn Pearce Shawn O. Pearce 3 | Terry Parker tparker 4 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding//src/test/resources=UTF-8 6 | encoding/=UTF-8 7 | -------------------------------------------------------------------------------- /navbar.md: -------------------------------------------------------------------------------- 1 | * [Home](/README.md) 2 | * [Markdown](/Documentation/markdown.md) 3 | * [Configuration](/Documentation/config.md) 4 | * [Developers](/Documentation/developer-guide.md) 5 | 6 | [extensions]: blocknote, multicolumn, namedanchor, smartquote, toc 7 | -------------------------------------------------------------------------------- /version.bzl: -------------------------------------------------------------------------------- 1 | # Maven style API version (e.g. '2.x-SNAPSHOT'). 2 | # 3 | # Used by :install and :deploy when talking to the destination repository. As 4 | # we currently have no stable releases, we use the "build number" scheme 5 | # described at: 6 | # https://www.mojohaus.org/versions-maven-plugin/version-rules.html 7 | GITILES_VERSION = "0.4" 8 | -------------------------------------------------------------------------------- /lib/junit/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_library") 2 | 3 | package( 4 | default_visibility = ["//visibility:public"], 5 | ) 6 | 7 | java_library( 8 | name = "junit", 9 | exports = ["@junit//jar"], 10 | ) 11 | 12 | java_library( 13 | name = "hamcrest-core", 14 | exports = ["@hamcrest-core//jar"], 15 | ) 16 | -------------------------------------------------------------------------------- /.bazelrc: -------------------------------------------------------------------------------- 1 | build --workspace_status_command=./tools/workspace-status.sh 2 | build --repository_cache=~/.gerritcodereview/bazel-cache/repository 3 | build --experimental_strict_action_env 4 | build --action_env=PATH 5 | build --disk_cache=~/.gerritcodereview/bazel-cache/cas 6 | build --java_toolchain //tools:error_prone_warnings_toolchain 7 | 8 | test --build_tests_only 9 | test --test_output=errors 10 | -------------------------------------------------------------------------------- /resources/com/google/gitiles/mime-types.properties: -------------------------------------------------------------------------------- 1 | bmp = image/bmp 2 | css = text/css 3 | csv = text/csv 4 | gif = image/gif 5 | htm = text/html 6 | html = text/html 7 | jpeg = image/jpeg 8 | jpg = image/jpeg 9 | js = application/javascript 10 | md = text/markdown 11 | pdf = application/pdf 12 | png = image/png 13 | svg = image/svg+xml 14 | tiff = image/tiff 15 | txt = text/plain 16 | xml = text/xml 17 | -------------------------------------------------------------------------------- /lib/slf4j/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_library") 2 | 3 | package( 4 | default_visibility = ["//visibility:public"], 5 | ) 6 | 7 | java_library( 8 | name = "slf4j-api", 9 | exports = ["@slf4j-api//jar"], 10 | ) 11 | 12 | java_library( 13 | name = "slf4j-simple", 14 | runtime_deps = [ 15 | ":slf4j-api", 16 | "@slf4j-simple//jar", 17 | ], 18 | ) 19 | -------------------------------------------------------------------------------- /BUILD: -------------------------------------------------------------------------------- 1 | load("@com_googlesource_gerrit_bazlets//tools:pkg_war.bzl", "pkg_war") 2 | 3 | pkg_war( 4 | name = "gitiles", 5 | context = ["//resources/com/google/gitiles:webassets"], 6 | libs = [ 7 | "//lib/jetty:server", 8 | "//lib/jetty:servlet", 9 | "//lib/slf4j:slf4j-simple", 10 | "//java/com/google/gitiles:servlet", 11 | ], 12 | web_xml = "//resources:web_xml", 13 | ) 14 | -------------------------------------------------------------------------------- /lib/truth/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_library") 2 | 3 | java_library( 4 | name = "truth", 5 | visibility = ["//visibility:public"], 6 | exports = ["@truth//jar"], 7 | runtime_deps = [ 8 | ":diffutils", 9 | "//lib:guava", 10 | "//lib/junit", 11 | ], 12 | ) 13 | 14 | java_library( 15 | name = "diffutils", 16 | visibility = ["//visibility:private"], 17 | exports = ["@diffutils//jar"], 18 | ) 19 | -------------------------------------------------------------------------------- /tools/workspace-status.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # This script will be run by bazel when the build process starts to 4 | # generate key-value information that represents the status of the 5 | # workspace. The output should be like 6 | # 7 | # KEY1 VALUE1 8 | # KEY2 VALUE2 9 | # 10 | # If the script exits with non-zero code, it's considered as a failure 11 | # and the output will be discarded. 12 | 13 | function rev() { 14 | cd $1; git describe --always --match "v[0-9].*" --dirty 15 | } 16 | 17 | echo STABLE_BUILD_GITILES_LABEL $(rev .) 18 | -------------------------------------------------------------------------------- /lib/soy/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_library") 2 | 3 | package( 4 | default_visibility = ["//visibility:public"], 5 | ) 6 | 7 | java_library( 8 | name = "soy", 9 | exports = [ 10 | "@soy//jar", 11 | ], 12 | runtime_deps = [ 13 | "@html-types//jar", 14 | "@icu4j//jar", 15 | "@ow2-asm-analysis//jar", 16 | "@ow2-asm-commons//jar", 17 | "@ow2-asm-tree//jar", 18 | "@ow2-asm-util//jar", 19 | "@ow2-asm//jar", 20 | "@protobuf//jar", 21 | ], 22 | ) 23 | -------------------------------------------------------------------------------- /tools/bazlets.bzl: -------------------------------------------------------------------------------- 1 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") 2 | 3 | NAME = "com_googlesource_gerrit_bazlets" 4 | 5 | def load_bazlets( 6 | commit = None, 7 | local_path = None): 8 | if not local_path: 9 | git_repository( 10 | name = NAME, 11 | remote = "https://gerrit.googlesource.com/bazlets", 12 | commit = commit, 13 | ) 14 | else: 15 | native.local_repository( 16 | name = NAME, 17 | path = local_path, 18 | ) 19 | -------------------------------------------------------------------------------- /tools/eclipse/BUILD: -------------------------------------------------------------------------------- 1 | load("@com_googlesource_gerrit_bazlets//tools:classpath.bzl", "classpath_collector") 2 | load("@rules_java//java:defs.bzl", "java_library") 3 | 4 | DEPS = [ 5 | "//java/com/google/gitiles:servlet", 6 | "//java/com/google/gitiles/dev:lib", 7 | ] 8 | 9 | java_library( 10 | name = "classpath", 11 | runtime_deps = DEPS, 12 | ) 13 | 14 | classpath_collector( 15 | name = "main_classpath_collect", 16 | testonly = 1, 17 | deps = DEPS + [ 18 | "//javatests/com/google/gitiles:servlet_tests", 19 | ], 20 | ) 21 | -------------------------------------------------------------------------------- /lib/guice/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_library") 2 | 3 | package( 4 | default_visibility = ["//visibility:public"], 5 | ) 6 | 7 | java_library( 8 | name = "guice", 9 | exports = [ 10 | ":aopalliance", 11 | ":guice-assistedinject", 12 | ":guice-library", 13 | ":javax-inject", 14 | ], 15 | ) 16 | 17 | [java_library( 18 | name = n, 19 | runtime_deps = ["@%s//jar" % n], 20 | ) for n in [ 21 | "guice-library", 22 | "guice-assistedinject", 23 | "javax-inject", 24 | "aopalliance", 25 | ]] 26 | -------------------------------------------------------------------------------- /resources/com/google/gitiles/static/prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} -------------------------------------------------------------------------------- /lib/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_library") 2 | 3 | package( 4 | default_visibility = ["//visibility:public"], 5 | ) 6 | 7 | [java_library( 8 | name = n, 9 | exports = ["@%s//jar" % n], 10 | ) for n in [ 11 | "autolink", 12 | "commonmark", 13 | "commons-lang3", 14 | "commons-text", 15 | "cm-autolink", 16 | "gfm-strikethrough", 17 | "gfm-tables", 18 | "html-types", 19 | "jsr305", 20 | "servlet-api_2_5", 21 | "servlet-api_3_0", 22 | "gson", 23 | "guava", 24 | "guava-failureaccess", 25 | "prettify", 26 | "ow2-asm", 27 | "ow2-asm-analysis", 28 | "ow2-asm-commons", 29 | "ow2-asm-tree", 30 | "ow2-asm-util", 31 | ]] 32 | -------------------------------------------------------------------------------- /resources/com/google/gitiles/BUILD: -------------------------------------------------------------------------------- 1 | load( 2 | "@com_googlesource_gerrit_bazlets//tools:genrule2.bzl", 3 | "genrule2", 4 | ) 5 | 6 | filegroup( 7 | name = "gitiles", 8 | srcs = glob( 9 | ["**/*"], 10 | exclude = ["BUILD"], 11 | ), 12 | visibility = ["//visibility:public"], 13 | ) 14 | 15 | genrule2( 16 | name = "webassets", 17 | srcs = [":gitiles"], 18 | outs = ["webassets.zip"], 19 | cmd = " && ".join([ 20 | "o=$$PWD/$@", 21 | "tar cf - $(SRCS) | tar -C $$TMP/ --strip-components=1 -xf -", 22 | "cd $$TMP/com/google/gitiles/", 23 | "mv static +static", 24 | "zip -qr $$o .", 25 | ]), 26 | visibility = ["//visibility:public"], 27 | ) 28 | -------------------------------------------------------------------------------- /fake_pom_deploy.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.google.gitiles 4 | gitiles 5 | 1 6 | 7 | 8 | 9 | com.googlesource.gerrit 10 | gs-maven-wagon 11 | 3.3 12 | 13 | 14 | 15 | 16 | 17 | gerrit-maven-repository 18 | https://gerrit-maven.storage.googleapis.com/ 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /java/com/google/gitiles/blame/cache/BUILD: -------------------------------------------------------------------------------- 1 | load("@com_googlesource_gerrit_bazlets//tools:javadoc.bzl", "java_doc") 2 | load("@rules_java//java:defs.bzl", "java_library") 3 | load("//tools:stamper.bzl", "stamp") 4 | 5 | java_library( 6 | name = "cache", 7 | srcs = glob(["**/*.java"]), 8 | visibility = ["//visibility:public"], 9 | deps = [ 10 | "//lib:guava", 11 | "//lib/jgit", 12 | ], 13 | ) 14 | 15 | java_doc( 16 | name = "cache-javadoc", 17 | libs = [ 18 | ":cache", 19 | "//lib:guava", 20 | "//lib/jgit:jgit", 21 | ], 22 | pkgs = ["com.google.gitiles.blame.cache"], 23 | title = "Blame Cache API Documentation", 24 | visibility = ["//visibility:public"], 25 | ) 26 | 27 | stamp( 28 | name = "cache", 29 | workspace = "gitiles", 30 | ) 31 | -------------------------------------------------------------------------------- /java/com/google/gitiles/dev/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_binary", "java_library") 2 | 3 | java_library( 4 | name = "lib", 5 | srcs = glob(["**/*.java"]), 6 | visibility = ["//visibility:public"], 7 | deps = [ 8 | "//java/com/google/gitiles:servlet", 9 | "//lib:guava", 10 | "//lib:guava-failureaccess", 11 | "//lib:html-types", 12 | "//lib:servlet-api_3_0", 13 | "//lib/jetty:server", 14 | "//lib/jetty:servlet", 15 | "//lib/jgit", 16 | "//lib/jgit:jgit-servlet", 17 | "//lib/slf4j:slf4j-api", 18 | "//lib/slf4j:slf4j-simple", 19 | "//lib/soy", 20 | ], 21 | ) 22 | 23 | java_binary( 24 | name = "dev", 25 | main_class = "com.google.gitiles.dev.Main", 26 | runtime_deps = [":lib"], 27 | ) 28 | -------------------------------------------------------------------------------- /tools/maven/BUILD: -------------------------------------------------------------------------------- 1 | load("@com_googlesource_gerrit_bazlets//tools/maven:package.bzl", "maven_package") 2 | load("//:version.bzl", "GITILES_VERSION") 3 | 4 | maven_package( 5 | src = { 6 | "blame-cache": "//java/com/google/gitiles/blame/cache:libcache-src.jar", 7 | "gitiles-servlet": "//java/com/google/gitiles:libservlet-src.jar", 8 | }, 9 | doc = { 10 | "blame-cache": "//java/com/google/gitiles/blame/cache:cache-javadoc", 11 | "gitiles-servlet": "//java/com/google/gitiles:servlet-javadoc", 12 | }, 13 | group = "com.google.gitiles", 14 | jar = { 15 | "blame-cache": "//java/com/google/gitiles/blame/cache:cache-stamped", 16 | "gitiles-servlet": "//java/com/google/gitiles:servlet-stamped", 17 | }, 18 | repository = "gerrit-maven-repository", 19 | url = "gs://gerrit-maven", 20 | version = GITILES_VERSION, 21 | ) 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gitiles - A simple JGit repository browser 2 | 3 | Gitiles is a simple repository browser for Git repositories, built on JGit. Its 4 | guiding principle is simplicity: it has no formal access controls, no write 5 | access, no fancy Javascript, etc. 6 | 7 | Gitiles automatically renders `*.md` Markdown files into HTML for simplified 8 | documentation. Refer to the [Markdown documentation](/Documentation/markdown.md) 9 | for details. 10 | 11 | ## Configuration 12 | 13 | Gitiles is configurable in a git-style configuration file named 14 | `gitiles.config`. Refer to the [configuration documentation](/Documentation/config.md) 15 | for details. 16 | 17 | ## Bugs 18 | 19 | Use the [issue tracker at github](https://github.com/google/gitiles/issues) to 20 | file bugs. 21 | 22 | ## Contributing to Gitiles 23 | 24 | Please refer to the [Developer Guide](/Documentation/developer-guide.md). 25 | -------------------------------------------------------------------------------- /java/com/google/gitiles/doc/TocBlock.java: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All Rights Reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package com.google.gitiles.doc; 16 | 17 | import org.commonmark.node.CustomBlock; 18 | 19 | /** Block node {@code [TOC]} to display table of contents. */ 20 | public class TocBlock extends CustomBlock {} 21 | -------------------------------------------------------------------------------- /java/com/google/gitiles/dev/Main.java: -------------------------------------------------------------------------------- 1 | // Copyright 2012 Google Inc. All Rights Reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package com.google.gitiles.dev; 16 | 17 | import com.google.gitiles.GitilesConfig; 18 | 19 | public class Main { 20 | public static void main(String[] args) throws Exception { 21 | new DevServer(GitilesConfig.defaultFile()).start(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/jgit/BUILD: -------------------------------------------------------------------------------- 1 | load("@rules_java//java:defs.bzl", "java_library") 2 | 3 | package( 4 | default_visibility = ["//visibility:public"], 5 | ) 6 | 7 | java_library( 8 | name = "jgit-servlet", 9 | exports = ["@jgit-servlet//jar"], 10 | ) 11 | 12 | java_library( 13 | name = "jgit", 14 | exports = ["@jgit-lib//jar"], 15 | ) 16 | 17 | java_library( 18 | name = "jgit-archive", 19 | exports = [ 20 | ":commons-compress", 21 | ":jgit-archive_library", 22 | ":tukaani-xz", 23 | ], 24 | ) 25 | 26 | java_library( 27 | name = "tukaani-xz", 28 | exports = ["@tukaani-xz//jar"], 29 | ) 30 | 31 | java_library( 32 | name = "commons-compress", 33 | exports = ["@commons-compress//jar"], 34 | ) 35 | 36 | java_library( 37 | name = "jgit-archive_library", 38 | exports = ["@jgit-archive//jar"], 39 | ) 40 | 41 | java_library( 42 | name = "junit", 43 | exports = ["@jgit-junit//jar"], 44 | ) 45 | -------------------------------------------------------------------------------- /java/com/google/gitiles/doc/IframeBlock.java: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Google Inc. All Rights Reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); 4 | // you may not use this file except in compliance with the License. 5 | // You may obtain a copy of the License at 6 | // 7 | // http://www.apache.org/licenses/LICENSE-2.0 8 | // 9 | // Unless required by applicable law or agreed to in writing, software 10 | // distributed under the License is distributed on an "AS IS" BASIS, 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | // See the License for the specific language governing permissions and 13 | // limitations under the License. 14 | 15 | package com.google.gitiles.doc; 16 | 17 | import org.commonmark.node.CustomBlock; 18 | 19 | /** Parsed {@code