mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 07:14:10 +08:00
0c41b15496
Most of the world, including the Chromium universe, seems to be standardizing on Markdown for documentation. Markdown provides the benefit of automatic rendering on Gitiles (Gerrit), and on GitHub mirrors as well. Crashpad should fit in with its surroundings. There are two quirks that I was unable to resolve. - Markdown does not allow **emphasis** within a ```code fence``` region. In blocks showing interactive examples, the AsciiDoc documentation used this to highlight what the user was expected to type. - Markdown does not have a “definition list” (<dl>). This would have been nice in man pages for the Options and Exit Status sections. In its place, I used unnumbered lists. This is a little ugly, but it’s not the end of the world. The new Markdown-formatted documentation is largely identical to the AsciiDoc that it replaces. Minor editorial revisions were made. References to Mac OS X now mention macOS, and tool man pages describing tools that that access task ports now mention System Integrity Protection (SIP). The AppEngine-based https://crashpad.chromium.org/ app in doc/appengine is still necessary to serve Doxygen-generated documentation. This app is updated to redirect existing generated-HTML URLs to Gitiles’ automatic Markdown rendering. Scripts in doc/support are updated to adapt to this change. All AsciiDoc support files in doc/support have been removed. BUG=crashpad:138 Change-Id: I15ad423d5b7aa1b7aa2ed1d2cb72639eec7c81aa Reviewed-on: https://chromium-review.googlesource.com/408256 Reviewed-by: Robert Sesek <rsesek@chromium.org> Reviewed-by: Scott Graham <scottmg@chromium.org>
40 lines
1.6 KiB
Plaintext
40 lines
1.6 KiB
Plaintext
This is the App Engine app that serves https://crashpad.chromium.org/.
|
|
|
|
To work on this app, obtain the App Engine SDK for Go from
|
|
https://cloud.google.com/appengine/docs/go/download. Unpacking it produces a
|
|
go_appengine directory. This may be added to your $PATH for convenience,
|
|
although it is not necessary.
|
|
|
|
The commands in this README are expected to be run from the directory containing
|
|
app.yaml.
|
|
|
|
The App Engine SDK for Go provides App Engine packages at the “appengine” import
|
|
path, but not the newer “google.golang.org/appengine” path. The Crashpad app
|
|
uses the newer paths. See
|
|
https://github.com/golang/appengine#2-update-import-paths and
|
|
https://code.google.com/p/googleappengine/issues/detail?id=11670. To make these
|
|
available, obtain a Go release from https://golang.org/dl/, and run:
|
|
|
|
$ GOROOT=…/go_appengine/goroot GOPATH=…/go_appengine/gopath go get -d
|
|
|
|
To test locally:
|
|
|
|
$ …/go_appengine/goapp serve
|
|
|
|
Look for the “Starting module "default" running at: http://localhost:8080” line,
|
|
which tells you the URL of the local running instance of the app.
|
|
|
|
To deploy:
|
|
|
|
$ version=$(git rev-parse --short=12 HEAD)
|
|
$ [[ -n "$(git status --porcelain)" ]] && version+=-dirty
|
|
$ goapp deploy -version "${version}"
|
|
|
|
Note that app.yaml does not name a “version” to encourage you to use a git hash
|
|
as the version, as above.
|
|
|
|
Activate a newly-deployed version by visiting the App Engine console at
|
|
https://appengine.google.com/deployment?&app_id=s~crashpad-home, selecting it,
|
|
and choosing “Make Default”. It is also possible to delete old versions from
|
|
this page when they are no longer needed.
|