diff --git a/README.md b/README.md index c7be545e..57e81695 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ limitations under the License. * [Developing Crashpad](doc/developing.md): instructions for getting the source code, building, testing, and contributing to the project. * [Crashpad interface documentation](https://crashpad.chromium.org/doxygen/) - * [Crashpad tool man pages](https://crashpad.chromium.org/man/) + * [Crashpad tool man pages](doc/man.md) ## Source Code diff --git a/doc/appengine/main.go b/doc/appengine/main.go index adcf6716..a33f70fe 100644 --- a/doc/appengine/main.go +++ b/doc/appengine/main.go @@ -50,11 +50,15 @@ func handler(w http.ResponseWriter, r *http.Request) { "/bug/new": bugBaseURL + "issues/entry", "/doc/developing.html": masterBaseURL + "/doc/developing.md", "/doc/status.html": masterBaseURL + "/doc/status.md", + "/index.html": masterBaseURL + "README.md", + "/man": masterBaseURL + "doc/man.md", + "/man/": masterBaseURL + "doc/man.md", "/man/catch_exception_tool.html": masterBaseURL + "tools/mac/catch_exception_tool.md", "/man/crashpad_database_util.html": masterBaseURL + "tools/crashpad_database_util.md", "/man/crashpad_handler.html": masterBaseURL + "handler/crashpad_handler.md", "/man/exception_port_tool.html": masterBaseURL + "tools/mac/exception_port_tool.md", "/man/generate_dump.html": masterBaseURL + "tools/generate_dump.md", + "/man/index.html": masterBaseURL + "doc/man.md", "/man/on_demand_service_tool.html": masterBaseURL + "tools/mac/on_demand_service_tool.md", "/man/run_with_crashpad.html": masterBaseURL + "tools/mac/run_with_crashpad.md", } diff --git a/doc/developing.md b/doc/developing.md index 737f819f..229e7b00 100644 --- a/doc/developing.md +++ b/doc/developing.md @@ -33,18 +33,18 @@ provides more detail. ## Prerequisites -To develop Crashpad, the following tools are necessary, and must be -present in the `$PATH` environment variable: +To develop Crashpad, the following tools are necessary, and must be present in +the `$PATH` environment variable: + * Appropriate development tools. For macOS, this is + [Xcode](https://developer.apple.com/xcode/) and for Windows, it’s [Visual + Studio](https://www.visualstudio.com/). * Chromium’s [depot_tools](https://dev.chromium.org/developers/how-tos/depottools). * [Git](https://git-scm.com/). This is provided by Xcode on macOS and by depot_tools on Windows. * [Python](https://www.python.org/). This is provided by the operating system on macOS, and by depot_tools on Windows. - * Appropriate development tools. For macOS, this is - [Xcode](https://developer.apple.com/xcode/) and for Windows, it’s [Visual - Studio](https://www.visualstudio.com/). ## Getting the Source Code @@ -300,7 +300,10 @@ Agreement](https://developers.google.com/open-source/cla/individual) or [Corporate Contributor License Agreement](https://developers.google.com/open-source/cla/corporate) as appropriate before any submission can be accepted, and must be listed in the -`AUTHORS` file. Contributors may be listed in the `CONTRIBUTORS` file. +[`AUTHORS`](https://chromium.googlesource.com/crashpad/crashpad/+/master/AUTHORS) +file. Contributors may be listed in the +[`CONTRIBUTORS`](https://chromium.googlesource.com/crashpad/crashpad/+/master/CONTRIBUTORS) +file. ## Buildbot diff --git a/doc/man.md b/doc/man.md new file mode 100644 index 00000000..ff5fd413 --- /dev/null +++ b/doc/man.md @@ -0,0 +1,33 @@ + + +# Man Pages + +## Section 1: User Commands + + * [crashpad_database_util](../tools/crashpad_database_util.md) + * [generate_dump](../tools/generate_dump.md) + +### macOS-Specific + + * [catch_exception_tool](../tools/mac/catch_exception_tool.md) + * [exception_port_tool](../tools/mac/exception_port_tool.md) + * [on_demand_service_tool](../tools/mac/on_demand_service_tool.md) + * [run_with_crashpad](../tools/mac/run_with_crashpad.md) + +## Section 8: Dӕmons + + * [crashpad_handler](../handler/crashpad_handler.md) diff --git a/doc/support/generate.sh b/doc/support/generate.sh index 0f77a4a8..aa3d7035 100755 --- a/doc/support/generate.sh +++ b/doc/support/generate.sh @@ -44,48 +44,3 @@ rm -f "${output_dir}/index.html" # Ensure a favicon exists at the root since the browser will always request it. cp doc/favicon.ico "${output_dir}/" - -# Create man/index.html. Do this in two steps so that the built-up list of man -# pages can be sorted according to the basename, not the entire path. -list_file=$(mktemp) -for man_path in $(find . -name '*.md' | - ${sed_ext} -e 's%^\./%%' | - grep -Ev '^(README.md$|(third_party|doc)/)'); do - # These should show up in all man pages, but probably not all together in any - # other Markdown documents. - if ! (grep -q '^## Name$' "${man_path}" && - grep -q '^## Synopsis$' "${man_path}" && - grep -q '^## Description$' "${man_path}"); then - continue - fi - - man_basename=$(${sed_ext} -e 's/\.md$//' <<< $(basename "${man_path}")) - cat >> "${list_file}" << __EOF__ -${man_basename} -__EOF__ -done - -maybe_mkdir "${output_dir}/man" - -cd "${output_dir}/man" -cat > index.html << __EOF__ - - -