Closed Bug 274417 Opened 20 years ago Closed 20 years ago

Cleanup www.mozilla.org/directory

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sipaq, Assigned: sipaq)

References

()

Details

The HTML code in http://www.mozilla.org/directory/ is a huge mess, especially in
http://www.mozilla.org/directory/csdk-docs/ - There are all kinds of '<a
name="123"></a>' constructs which should be replaced with valid ID attributes on
the appropriate elements as in '<h3 id="n-123">foo</h3>'. Most of these internal
links aren't needed anyway.

I've already tried to tackle most of this. Most of the csdk-docs-directory has
already been cleaned up. The following files in that directory are still in need
of cleanup:

- addmod.htm
- datatype.htm
- filter.htm
- function.htm

The rest of www.mozilla.org/directory has already been tackled in small parts.
Assignee: mozilla.webmaster → bryner
Assignee: bryner → bugzilla
Status: NEW → ASSIGNED
I thought we had a bug about this, apparently not. Anyway, instead of having
numbers, fantasai suggested, for a similar situation, to drop the numbers and
use useful ID attribute values instead. Like |<h3 id="foo">foo</h3>| or |<h3
id="foo-bar">foo bar</h3>| or |<h3 id="foo-bar">Foo bar</h3>|, et cetera. (Same
guidelines as for URIs apply: lowercase, hyphens.)
By the way, thanks for the all the work!

We also want to use |<ul class="snav">| instead of a P element and the relevant
LINK elements. We also don't want to point to 'index.htm' but to './'. For an
example see <http://www.mozilla.org/directory/csdk-docs/search.htm>.

Eventually we might want to drop file extensions using MultiViews and I guess
fantasai would like the file extensions to be .html.
(In reply to comment #1)
> I thought we had a bug about this, apparently not. Anyway, instead of having
> numbers, fantasai suggested, for a similar situation, to drop the numbers and
> use useful ID attribute values instead. Like |<h3 id="foo">foo</h3>| or |<h3
> id="foo-bar">foo bar</h3>| or |<h3 id="foo-bar">Foo bar</h3>|, et cetera. (Same
> guidelines as for URIs apply: lowercase, hyphens.)

Yep, 
but I reserve this task for a later time, because I want all the files to be in
a usable state, before someone can tackle this.
(In reply to comment #2) 
> We also want to use |<ul class="snav">| instead of a P element and the relevant
> LINK elements. We also don't want to point to 'index.htm' but to './'. For an
> example see <http://www.mozilla.org/directory/csdk-docs/search.htm>.

Done.

> Eventually we might want to drop file extensions using MultiViews 

???
Sorry, could you clarify this? I might be dumb, but what are MultiViews?

> and I guess fantasai would like the file extensions to be .html.

Yep, but IMO that's only a aesthetical problem.
Unless we're moving the files around anyway, or they're certainly at the
location they'd be if we were free to move them around, we probably shouldn't
just drop or change the file extension for the sake of doing so.
Ok, I fixed up pretty much everything major in all the sub-directories except
the csdk-docs directory. The following files still need a cleanup:

In the main directory:
- addrbook-refactoring-proposal.html
- csdk-tests.html
- java40betarelnotes.html
- java41relnotes.html

In the csdk-docs directory:
- See comment 0.
The files under csdk-docs were generated from FrameMaker originally (which
explains the name="123" constructs; I think that is how Frame handles
cross-references).
(In reply to comment #0)
> Most of the csdk-docs-directory has already been cleaned up. The following 
> files in that directory are still in need of cleanup:
> 
> - addmod.htm
> - datatype.htm
> - filter.htm
> - function.htm

addmod.htm has just been cleaned up. Only the last three files are still
outstanding. Volunteers welcome ;-)
I did some general clean up in some files and I'm now working on 'datatype.htm'.
However, we still need to fix the NAME/ID issue mentioned in comment 1.
Besides changing the ID attributes, I think we should consider changing the H1
as well. IMHO H1 should be the title of the page, not the title of a serie of
documents. Perhaps we could drop the current H1 element (and leave the
information inside TITLE) and make the chapter titles H1?

datatype.htm is done by the way.
filter.htm is also done.

I've cleaned up 20-25% of function.htm. I hope to finish this by the end of the
year.
Short update:
function.htm, the last outstanding file for the general cleanup of the csdk-docs
is 90% finished. I hope to commit this in the next few days. The size reduction
of that file is huge.

Before cleanup: ca. 1380 KB
After cleanup: ca. 540 KB
The new version of function.htm has been checked in.
(In reply to comment #6)
> Ok, I fixed up pretty much everything major in all the sub-directories except
> the csdk-docs directory. The following files still need a cleanup:
> 
> In the main directory:
> - addrbook-refactoring-proposal.html
> - csdk-tests.html
> - java40betarelnotes.html
> - java41relnotes.html

The first two documents have been cleaned up. Both validate now.
(In reply to comment #6)
> Ok, I fixed up pretty much everything major in all the sub-directories except
> the csdk-docs directory. The following files still need a cleanup:
> 
> In the main directory:
> - java40betarelnotes.html

This one has also been cleaned up and validates now.
(In reply to comment #1)
> Anyway, instead of having numbers, fantasai suggested, for a similar situation, 
> to drop the numbers and use useful ID attribute values instead. Like 
> |<h3 id="foo">foo</h3>| or |<h3 > id="foo-bar">foo bar</h3>| or 
> |<h3 id="foo-bar">Foo bar</h3>|, et cetera.

Anne, after fixing the only outstanding file that doesn't validate
<http://www.mozilla.org/directory/java41relnotes.html>, I would like to mark
this bug as FIXED and move the work you describe in your comment into a new bug.
IMO this doesn't fall into the scope of general cleanup and validation work.

What do you think?
I'm ok with the new bug.
Ok, I fixed the last remaining file. Thanks a lot for all the help.
I will file a new bug for the stuff mentioned in comment 16.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
(In reply to comment #18)
> I will file a new bug for the stuff mentioned in comment 16.

I filed bug 283460 for the additional cleanup work.
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.