7b325695ab
* stable-2.16: Consume JGit artifacts from Maven Central Consume JGit artifacts from Maven Central gr-related-changes: Don't show "Same topic" for only one change RelatedChanges: Don't show "Same Topic" for only one change ChangeEditApi: Allow to set options on change edit detail request JS API: Expose invalidateReposCache method restAPI.invalidateGroupsCache: Remove unused parameters restAPI.invalidateReposCache: Remove unused parameters Add Javadoc to clarify behavior of {Accounts|Changes|Groups}#withOptions Update highlight.js to master branch Docs: Add use-case for Private changes OnlineNoteDbMigrationIT: improve readability of some tests Update git submodules migrate-to-note-db: add --skip-project option OnlineNoteDbMigrationIT: Reuse existing constant Do not crash if permitted labels array is empty Fix '/' getting typed in search bar when pressed Encode project name in download commands ProjectResetter: Avoid Repository#getAllRefs AbstractDaemonTest: Avoid Repository#getAllRefs ChangeUtil: Remove javadoc references to deprecated JGit methods Set version to 2.16.4-SNAPSHOT AccountManagerIT: Fix failing authentication tests ChangeEditApiImpl: Access non-Singleton change edit classes via Provider ListChangesOption: Add missing word in Javadoc Update git submodules Update git submodules Fix broken links in gr-icons.html Add release notes for Gerrit v2.10.8 AccountIT#updateDisplayName: Rewrite to work with updated account manager Add release notes for Gerrit v2.9.5 AccountApiImpl: Fix message in exception RelatedChangeAndCommitInfo: Use default CommitInfo#toString Support Get Related in extension API CommitInfo: Use ToStringHelper CommitInfo: Handle root commits in toString() Implement equals/hashCode/toString in CommitInfo and friends Set version to 2.15.9-SNAPSHOT AccountIT: Disable failing updateDisplayName test Set version to 2.16.3 Set version to 2.13.12 Set version to 2.12.9 Set version to 2.11.12 Set version to 2.10.8 Upgrade JGit to 5.1.5.201812261915-r Set version to 2.15.8 Upgrade JGit to 4.9.8.201812241815-r Set version to 2.9.5 Set version to 2.14.18 Revert "Fix the missing DB entry in Gerrit DB" Upgrade JGit to 4.7.7.201812240805-r maven_jar: Add repo.eclipse.org to supported repositories Update git submodules ChangeApi: Add method to list change reviewers Bazel: Automatically fix lint errors with buildifier 0.20.0 Revert "Temp fix for projects list ordering in PolyGerrit" Do not center the "By User" column in the Group Audit Log table Bazel: Fix more buildifier warnings Bazel: Automatically fix lint errors with buildifier 0.20.0 Fix typo in documentation of edit preferences Add MIME type for favicons to list of allowed image types. Bazel: Automatically fix lint errors with buildifier Mail: Use correct patch set when reading line from file Upgrade JGit to 4.5.5.201812240535-r Change-Id: I15dd15a2e3a1171ddfb792a3f17c43861d434421
102 lines
2.2 KiB
Python
102 lines
2.2 KiB
Python
load("//tools/bzl:asciidoc.bzl", "documentation_attributes", "genasciidoc", "genasciidoc_zip")
|
|
load("//tools/bzl:license.bzl", "license_map")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
exports_files([
|
|
"replace_macros.py",
|
|
])
|
|
|
|
filegroup(
|
|
name = "prettify_files",
|
|
srcs = [
|
|
":prettify.min.css",
|
|
":prettify.min.js",
|
|
],
|
|
)
|
|
|
|
genrule(
|
|
name = "prettify_min_css",
|
|
srcs = ["//resources/com/google/gerrit/prettify:client/prettify.css"],
|
|
outs = ["prettify.min.css"],
|
|
cmd = "cp $< $@",
|
|
)
|
|
|
|
genrule(
|
|
name = "prettify_min_js",
|
|
srcs = ["//resources/com/google/gerrit/prettify:client/prettify.js"],
|
|
outs = ["prettify.min.js"],
|
|
cmd = "cp $< $@",
|
|
)
|
|
|
|
filegroup(
|
|
name = "resources",
|
|
srcs = glob([
|
|
"images/*.jpg",
|
|
"images/*.png",
|
|
]) + [
|
|
":prettify_files",
|
|
"//:LICENSES.txt",
|
|
],
|
|
)
|
|
|
|
license_map(
|
|
name = "licenses",
|
|
opts = ["--asciidoctor"],
|
|
targets = [
|
|
"//polygerrit-ui/app:polygerrit_ui",
|
|
"//java/com/google/gerrit/pgm",
|
|
],
|
|
)
|
|
|
|
license_map(
|
|
name = "js_licenses",
|
|
targets = [
|
|
"//polygerrit-ui/app:polygerrit_ui",
|
|
],
|
|
)
|
|
|
|
DOC_DIR = "Documentation"
|
|
|
|
SRCS = glob(["*.txt"]) + [":licenses.txt"]
|
|
|
|
genrule(
|
|
name = "index",
|
|
srcs = SRCS,
|
|
outs = ["index.jar"],
|
|
cmd = "$(location //java/com/google/gerrit/asciidoctor:doc_indexer) " +
|
|
"-o $(OUTS) " +
|
|
"--prefix \"%s/\" " % DOC_DIR +
|
|
"--in-ext \".txt\" " +
|
|
"--out-ext \".html\" " +
|
|
"$(SRCS)",
|
|
tools = ["//java/com/google/gerrit/asciidoctor:doc_indexer"],
|
|
)
|
|
|
|
# For the same srcs, we can have multiple genasciidoc_zip rules, but only one
|
|
# genasciidoc rule. Because multiple genasciidoc rules will have conflicting
|
|
# output files.
|
|
genasciidoc(
|
|
name = "Documentation",
|
|
srcs = SRCS,
|
|
attributes = documentation_attributes(),
|
|
backend = "html5",
|
|
)
|
|
|
|
genasciidoc_zip(
|
|
name = "html",
|
|
srcs = SRCS,
|
|
attributes = documentation_attributes(),
|
|
backend = "html5",
|
|
directory = DOC_DIR,
|
|
)
|
|
|
|
genasciidoc_zip(
|
|
name = "searchfree",
|
|
srcs = SRCS,
|
|
attributes = documentation_attributes(),
|
|
backend = "html5",
|
|
directory = DOC_DIR,
|
|
searchbox = False,
|
|
)
|