Update
In the recent post on the Wolfram Community Brian Van Vertloo (WRI) showed how it is possible to build HTML from the Documentation pages using "PacletTools`"
:
The documentation build code that is shipping with the desktop
products is capable of building HTML pages already, believe it or not.
The relevant function is PacletDocumentationBuild
(https://reference.wolfram.com/language/PacletTools/ref/PacletDocumentationBuild.html),
where you use:
Needs["PacletTools`"];PacletDocumentationBuild[paclet, outdir, "HTML"]
I haven't tried it, but probably it will add the anchors I described in the original version of this answer.
Original answer
You can easily check that every anchor on a published Documentation page is equal to the CellID
of the corresponding Cell
in the offline Documentation:


Your deployed notebook has no CellID
s set to its Cell
s.
According to the Docs,
Typically, a CellID
will be created automatically by the system for each new cell inserted in a notebook that has the setting CreateCellID->True
.
Setting CreateCellID->True
will not affect CellID
options of cells already in the notebook at the time the option is set.
Your Notebook has no CreateCellID->True
. So you should first create a new Notebook and set this option:
SetOptions[EvaluationNotebook[], CreateCellID -> True]
Then you can copy-paste the contents of your original Notebook into the new Notebook. All Cell
s will have CellID
assigned. After this you may deploy the new Notebook.