Allow formatting parameters (?format=TEXT, ?format=JSON) on markdown files When requesting a markdown file path via the auto command `+` (e.g. `/repo/+/master/README.md?format=TEXT`), ViewFilter previously unconditionally mapped all `.md` paths to `GitilesView.doc()` (`DocServlet`). Because `DocServlet` only handles HTML rendering and does not support TEXT (base64) or JSON representations, requesting `format=TEXT` or `format=JSON` resulted in an HTTP 400 (UNSUPPORTED_RESPONSE_FORMAT) error. This change updates `ViewFilter.parseAutoCommand` to check the requested format. It only routes to `GitilesView.doc()` when the format is HTML or DEFAULT (the standard web browser view). For TEXT or JSON requests, it preserves `GitilesView.path()` so `PathServlet` serves the base64 or JSON representation as expected, matching the behavior for non-markdown files and the `+show` command. Change-Id: Idd02ce77dba03bcc922983821ee3f55c37bfa878
Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls, no write access, no fancy Javascript, etc.
Gitiles automatically renders *.md Markdown files into HTML for simplified documentation. Refer to the Markdown documentation for details.
Gitiles is configurable in a git-style configuration file named gitiles.config. Refer to the configuration documentation for details.
Use gerrit's issue tracker to file bugs.
Please refer to the Developer Guide.