Closed Bug 1753127 Opened 2 years ago Closed 2 years ago

Import the NSPR doc from MDN

Categories

(NSPR :: NSPR, task)

Tracking

(firefox98 fixed)

RESOLVED FIXED
Tracking Status
firefox98 --- fixed

People

(Reporter: Sylvestre, Assigned: Sylvestre)

References

(Blocks 2 open bugs)

Details

Attachments

(13 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
No description provided.
Attachment #9261797 - Attachment description: Bug 1753127 - NSPR doc: initial import r?beurdouche → Bug 1753127 - NSPR doc: initial import r?bbeurdouche
Attachment #9261798 - Attachment description: Bug 1753127 - NSPR doc: Remove some old docs r?beurdouche → Bug 1753127 - NSPR doc: Remove some old docs r?bbeurdouche
Attachment #9261799 - Attachment description: Bug 1753127 - NSPR doc: fix many different issues r?beurdouche → Bug 1753127 - NSPR doc: fix many different issues r?bbeurdouche

Unfortunately the MDN docs are incomplete, they are missing details. I guess the problem was introduced a long time in the past, when an import from www to MDN was made.

For example, look at file nspr_types in your patch. At the bottom, in section "Status Type for Return Values", it simply says "PRStatus".

But the docs here include more information: https://www-archive.mozilla.org/projects/nspr/reference/html/prtyp
You will see information missing for each section on that page.

Flags: needinfo?(sledru)

Thanks to bkochendorfer
who told me where to find the raw www files:
https://github.com/mozilla-it/www-archive.mozilla.org/tree/master/projects/nspr

Well, to be honest, I have no intention to improve the doc itself.
I just want them to be available online which has not been the case for sometime.

But looking a bit deeper, I don't see what is missing on the imports.

For example, look at file nspr_types in your patch. At the bottom, in section "Status Type for Return Values", it simply says "PRStatus".

I think during the MDN import, the content has been split into smaller page.
For PRStatus, it is pointing to the page:
http://gecko-docs.mozilla.org-l1.s3-website.us-west-2.amazonaws.com/main/1f997d84-83bf-11ec-bf1c-0242ac110004/security/nss/nspr/reference/prstatus.html

Note that the original URL doesn't have more content:
https://github.com/mozilla-it/www-archive.mozilla.org/blob/ad04f29f02b91122b33b85ddfcd544db187cf531/projects/nspr/reference/html/Prtyp.html#L406-L417

Flags: needinfo?(sledru) → needinfo?(kaie)

(In reply to Sylvestre Ledru [:Sylvestre] from comment #6)

Well, to be honest, I have no intention to improve the doc itself.
I just want them to be available online which has not been the case for sometime.

That's fine. My point is, the MDN docs are incomplete, and I'd prefer that we rather import the documentation from www-archive.

But looking a bit deeper, I don't see what is missing on the imports.

This is your full import:
https://d2mfgivbiy2fiw.cloudfront.net/file/data/f3tiyglgas67tkloxo2b/PHID-FILE-caorl5jyazygw4uyuv3g/D137588.diff

That doesn't contain the text "Use PRPackedBool within structures where bit fields" which I found on this page:
https://www-archive.mozilla.org/projects/nspr/reference/html/prtyp

Flags: needinfo?(kaie)
Attachment #9261797 - Attachment description: Bug 1753127 - NSPR doc: initial import r?bbeurdouche → Bug 1753127 - NSPR doc: initial import UPGRADE_NSS_RELEASE r?bbeurdouche,kaie
Attachment #9261798 - Attachment description: Bug 1753127 - NSPR doc: Remove some old docs r?bbeurdouche → Bug 1753127 - NSPR doc: Remove some old docs UPGRADE_NSS_RELEASE r?bbeurdouche,kaie
Attachment #9261799 - Attachment description: Bug 1753127 - NSPR doc: fix many different issues r?bbeurdouche → Bug 1753127 - NSPR doc: fix many different issues UPGRADE_NSS_RELEASE r?bbeurdouche,kaie
Attachment #9261832 - Attachment description: Bug 1753127 - NSPR doc: fix some links in the various part of the doc r?bbeurdouche → Bug 1753127 - NSPR doc: fix some links in the various part of the doc UPGRADE_NSS_RELEASE r?bbeurdouche,kaie
Attachment #9261838 - Attachment description: Bug 1753127 - NSPR doc: move the doc into docs/nspr r?kaie → Bug 1753127 - NSPR doc: move the doc into docs/nspr UPGRADE_NSS_RELEASE r?kaie

For the record:

Normally, the keywords UPGRADE_NSS_RELEASE and UPGRADE_NSPR_RELEASE are allowed only when comitting official upstream releases.

We allow these changes, because they are temporary, to simplify Sylvestre's work.

All files that are added to the security/nss and nsprpub directories (temporarily) are suposed to be moved to a different place as part of the patches in this bug.

After all patches were landed, we must verify that no (new or changed) files remain, and that using the NSS/NSPR update scripts will create the exact same state of the directories. If a difference is shown, and the differences are supposed to be kept, follow-up work will be required.

Attachment #9261888 - Attachment description: Bug 1753127 - NSPR doc: fix the typos and warnings r?kaie → Bug 1753127 - NSPR doc: fix the typos, warnings and nbsp; r?kaie
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ca5af776e499
NSPR doc: initial import UPGRADE_NSS_RELEASE r=bbeurdouche
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0be9674635b7
NSPR doc: Remove some old docs UPGRADE_NSS_RELEASE r=bbeurdouche
https://hg.mozilla.org/integration/autoland/rev/3f1b085c285c
NSPR doc: fix many different issues UPGRADE_NSS_RELEASE r=bbeurdouche
https://hg.mozilla.org/integration/autoland/rev/8cd0d45e0306
NSPR doc: fix some links in the various part of the doc UPGRADE_NSS_RELEASE r=bbeurdouche
https://hg.mozilla.org/integration/autoland/rev/291e7044fbb6
NSPR doc: Add some missing content back UPGRADE_NSS_RELEASE r=kaie,bbeurdouche
https://hg.mozilla.org/integration/autoland/rev/2ef5b56d94f8
NSPR doc: move the doc into docs/nspr UPGRADE_NSS_RELEASE r=kaie,bbeurdouche
https://hg.mozilla.org/integration/autoland/rev/a27f2f698323
NSPR doc: fix the typos, warnings and nbsp; r=kaie

Note: these links won't work for local doc build of NSS.
They are designed for firefox source tree:
https://firefox-source-docs.mozilla.org/security/nss/

I'm attaching with additional docs that I found on https://github.com/mozilla-it/www-archive.mozilla.org and https://github.com/mdn/archived-content

Included are two training documents, that were originally .ppt files.

What happens to files that aren't linked? They cannot be opened through https://firefox-source-docs.mozilla.org/nspr/ right?

This old page here has a table "technical notes". It would be good to copy that and link the various documents that we have in tree.
www-archive.mozilla.org/projects/nspr/index.html

Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/42ba20e22c90
NSPR doc: add a listing page r=kaie DONTBUILD
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1ec37fdbe79a
NSPR doc: fix some links + cosmetic changes r=kaie
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4c94a2f92c86
Additional NSPR docs from www and MDN archives. r=sylvestre DONTBUILD
https://hg.mozilla.org/integration/autoland/rev/187da20ce174
NSPR doc: Fix warnings and links r=kaie DONTBUILD
Component: Documentation Infrastructure → NSPR
Product: Firefox Build System → NSPR
See Also: → 1709817
Target Milestone: 98 Branch → ---
Version: unspecified → other
Blocks: 1727386
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: