-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-consistency in Documentation #2549
Comments
First, thanks a lot for wording this out, and allow me to make a small change so that auto-links appear.
|
I am not 'yet' suggesting that we eliminate these secondary files from the documentation system. In this issue, I am strongly recommending for the purpose of robust design, that links are made to files that we define to be 'primary' and which are subject to a review process. The review process is, I think, the crucial difference between 'primary' and 'secondary' files. When any html file that is generated from a source in the When a file is edited, the change is registered in the github system, and the commit can be reversed. This means that the |
El mar., 15 ene. 2019 a las 4:20, Richard Hainsworth (<
[email protected]>) escribió:
I am not 'yet' suggesting that we eliminate these secondary files from the
documentation system.
In this issue, I am strongly recommending for the purpose of robust
design, that links are made to files that we define to be 'primary' and
which are subject to a review process.
The review process is, I think, the crucial difference between 'primary'
and 'secondary' files.
When any html file that is generated from a source in the doc/Language,
doc/Programs or doc/Type namespace is referenced (viewed in a browser), a
pencil button becomes visible in the top right corner. The underlying pod
can then be edited. When any file in html/routine or html/syntax spaces
is rendered in a browser, it cannot be edited.
That's not a big problem. As a matter of fact, we have the link to the
original source. We could just make the pencil point to that.
When a file is edited, the change is registered in the github system, and
the commit can be reversed.
This means that the doc/Language, doc/Type and doc/Program files are
subject to review. Others are not.
As you say, they are secondary, as in, they have already been reviewed (in
their primary form)
|
@finanalyst - you've got this sorted for raku/doc-website now, yes? If there's anything left, please open a followup ticket there. |
(See #2542)
The pod sources that document Perl 6 are in two subdirectories (
doc/Language/
anddoc/Type/
), approximately 360 files. (We can ignoredoc/programs/
with three files at present). I call these primary files. Site generation produces over 2300 files in thehtml/
directory.This process is highly inefficient and slow. Furthermore, the obscure manner in which these files are generated severely hampers any progress in developing the website or decoupling the documentation from the software that generates the website.
In place of the initial directories
doc/Language/
,doc/Type/
we end up withhtml/language/
,html/type/
ANDhtml/routine/
,html/syntax/
The issue I want to highlight here is that files in
html/routine/
andhtml/syntax/
ONLY exist as derivatives ofdoc/Language/
anddoc/Type/
. I call them 'secondary' files. If there is a change in egdoc/Language/str.pod6
, it could be reflected by a new file in thehtml/syntax/
directory, or the disappearance of a file inhtml/routine/
.Since secondary files are derived from primary files, making any references to secondary files will risk the link being broken, and it is difficult to reconstruct how to fix a link to a secondary file that may no longer exist. I hope everyone agrees that this is not an optimal policy. I repeat there is nothing in a secondary file that does not exist in a primary file.
For whatever reason, there are links in the primary files to secondary files. There are also links outside the perl6.org domain to secondary files.
I have proposed privately to other developers, and do so publicly here:
html/syntax/xxxx.html#yyyy
is replaced by its primary source, which is quoted in the secondary file itself)HOWEVER, since there was an implied guarantee in the past, I suggest that
I am working on (1) and (3) and I will post a PR in due course.
Would it be possible for anyone who vehemently objects to this idea please explain why (2) would be a wrong step?
The text was updated successfully, but these errors were encountered: