aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2025-03-28 12:49:43 -0700
committerGitHub <noreply@github.com>2025-03-28 12:49:43 -0700
commitd4dc5712c47dab5f5dcfc329db8121059b591fb1 (patch)
tree09c4087f0ed3a2a747537e99a0e2e010d1f9ac36 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent1bfc61064ab46e44865453d2c2176f5e7f96987c (diff)
downloadllvm-d4dc5712c47dab5f5dcfc329db8121059b591fb1.zip
llvm-d4dc5712c47dab5f5dcfc329db8121059b591fb1.tar.gz
llvm-d4dc5712c47dab5f5dcfc329db8121059b591fb1.tar.bz2
[clang-doc] Allow setting a base directory for hosted pages (#132482)
Currently, when we set URLs from JS, we set them only using the protocol and host locations. This works fine when docs are served from the base directory of the site, but if you want to nest it under another directory, our JS fails to set the correct path, leading to broken links. This patch adds a --base option to specify the path prefix to use, which is set in the generated index_json.js file. index.json can then fill in the prefix appropriately when generating links in a browser. This flag has no effect for non HTML output. Given an index hosted at: www.docs.com/base_directory/index.html we used to generate the following link: www.docs.com/file.html Using --base base_directory we now generate: www.docs.com/base_directory/file.html This allows such links to work when hosting pages without using a custom index.js.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions