This page provides basic info on maintaining the SDP documentation.
SDP docs are primarily in ASCIIDoctor format (*.adoc), from which HTML and PDF files are generated.
During development, typically only HTML files (not PDF) are updated, as HTML is generally suitable for reviewing incremental changes. PDFs are usually only updated during the release process (simply because they are much larger files).
We use the make dependency engine to generate .html and .pdf files from the source .adoc files, and also to generate .html files from source *.md files. The make utility is sensitive to your location in the directory tree, and it must be run from either of two directories relative to the workspace root:
<SDP_Workspace_Root>/doc <SDP_Workspace_Root>/Unsupported/doc
When in one of the doc directories With the proper tools installed (see Installing Tools below), use the make command to generate docs.
To see what needs to be updated:
make -n
To generate an individual file, referred to as a target of make, reference that file in the command:
make SDP_Guide.Unix.html
Note that files may not be checked out. You can check out files first, and use the special clean target to remove all generated files, re-generate them, and then p4 reconcile them to check out only changed files. Something like this:
make clean all rec
The clean target removes all generated files.
The all target builds all target files.
The rec target calls p4 rec in the current directory.
Be sure to submit any modified files. As noted above, if not doing a formal release, you can skip updating PDF files.
pandoc for conversions from Word to AsciiDoc. (Only needed if any *.docx files remain).asciidoctor to generate basic HTML.asciidoctor-pdf to generate PDF output.Downloads Information:
Conversions from Word done like this:
https://asciidoctor.org/docs/migrating-from-msword/
pandoc --from=docx --to=asciidoc --wrap=none --atx-headers --extract-media=extracted-media SDP_Guide.Unix#13.docx > output.adoc
You may need to look at the extracted-media directory.
When converting from MS Word you may get an error message from asciidoctor-pdf about UTF8/binary problems
and things like smart quotes, or em-dashes.
perl -ne 'print "$. $_" if m/[\x80-\xFF]/' SDP_Guide.Unix.adoc
# SDP Documentation Information This page provides basic info on maintaining the SDP documentation. SDP docs are primarily in ASCIIDoctor format (*.adoc), from which HTML and PDF files are generated. During development, typically only HTML files (not PDF) are updated, as HTML is generally suitable for reviewing incremental changes. PDFs are usually only updated during the release process (simply because they are much larger files). # How to run We use the `make` dependency engine to generate *.html and *.pdf files from the source *.adoc files, and also to generate *.html files from source *.md files. The `make` utility is sensitive to your location in the directory tree, and it must be run from either of two directories relative to the workspace root: <SDP_Workspace_Root>/doc <SDP_Workspace_Root>/Unsupported/doc When in one of the `doc` directories With the proper tools installed (see Installing Tools below), use the `make` command to generate docs. To see what needs to be updated: ``` make -n ``` To generate an individual file, referred to as a `target` of `make`, reference that file in the command: ``` make SDP_Guide.Unix.html ``` Note that files may not be checked out. You can check out files first, and use the special `clean` target to remove all generated files, re-generate them, and then `p4 reconcile` them to check out only changed files. Something like this: ``` make clean all rec ``` The `clean` target removes all generated files. The `all` target builds all target files. The `rec` target calls `p4 rec` in the current directory. Be sure to submit any modified files. As noted above, if not doing a formal release, you can skip updating PDF files. # Installing Tools * `pandoc` for conversions from Word to AsciiDoc. (Only needed if any *.docx files remain). * `asciidoctor` to generate basic HTML. * `asciidoctor-pdf` to generate PDF output. Downloads Information: * https://asciidoctor.org/docs/user-manual/#system-requirements * https://asciidoctor.org/docs/asciidoctor-pdf/#getting-started * https://pandoc.org/installing.html # Converting from MS Word Conversions from Word done like this: https://asciidoctor.org/docs/migrating-from-msword/ pandoc --from=docx --to=asciidoc --wrap=none --atx-headers --extract-media=extracted-media SDP_Guide.Unix#13.docx > output.adoc You may need to look at the extracted-media directory. # Finding non UTF8 chars When converting from MS Word you may get an error message from `asciidoctor-pdf` about UTF8/binary problems and things like smart quotes, or em-dashes. perl -ne 'print "$. $_" if m/[\x80-\xFF]/' SDP_Guide.Unix.adoc
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 33444 | Claude (AI Agent by Anthropic) | Initial population of r26.1.0.BETA from main. | ||
| //p4-sdp/main/doc/README.md | |||||
| #1 | 33433 | Claude (AI Agent by Anthropic) |
Copy Up from //p4-sdp/dev into //p4-sdp/main. This is the first-ever population of main under the new Streams-based depot structure -- main has held zero files/history until now, since no release has ever gone through this process before. 463 files, covering the entire 2026.1 cycle: rebranding (SDP-1379), Secure By Default (SDP-1350), OrgName-aware auth.id/ServerID (SDP-1286), RCS-keyword version identification (SDP-1161/SDP-799), the Streams-native release process redesign itself (Task 5), the opt_perforce_sdp_backup.sh false-error fix, the P4D 2026.1 test-suite targeting, refreshed P4*.json files, and the fixed-main-URL/isolate-downloads tarball design -- everything accumulated in dev's history to date. Isolated paths (ai_dev_support/, Version, doc/*.html, doc/*.pdf, doc/gen/*.man.txt, doc/gen/sdp_install.cfg, Unsupported/doc/*.html, Unsupported/doc/*.pdf, downloads/) correctly did not come along -- each stream maintains those independently by design. Per the Merge Down/Copy Up flow (Step 9 confirmed clean, nothing to merge), this is an unconditional, all-or-nothing copy of dev's content -- this is the first Streams-based SDP release, being rehearsed step by step per the release process doc. Agent: Claude Code, Model: Claude Sonnet 5 (claude-sonnet-5), operating as bot_Claude_Anthropic. |
||
| //p4-sdp/dev/doc/README.md | |||||
| #2 | 31574 | C. Thomas Tyler |
Merged SDP 2024.2 Patch 4 from Classic to Streams. p4 merge -b SDP_Classic_to_Streams |
||
| #1 | 31397 | C. Thomas Tyler | Populate -b SDP_Classic_to_Streams -s //guest/perforce_software/sdp/...@31368. | ||
| //guest/perforce_software/sdp/dev/doc/README.md | |||||
| #2 | 31367 | C. Thomas Tyler | Regenerated docs for release. | ||
| #1 | 26629 | Robert Cowham |
Fixed Makefile to generate HTML Check in theme Some notes in README Remove the .docx! |
||