1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-13 12:55:10 -05:00
Commit Graph

129 Commits

Author SHA1 Message Date
Florian Schmaus
2a05e908a7 Use link to immutable versioned XEP in biblatex's "url" entry 2023-12-11 11:58:12 +01:00
Kim Alvefur
06ff107d6f Fix XSLT quirk (Thanks Tedd)
In Firefox the XML+XSLT would render in some weird mode causing some CSS
rules, notably the dark mode background to be applied wrong, or if it
was the box model that was different.
2023-04-11 18:28:24 +02:00
Maxime “pep” Buquet
8eb047a669
xep.xsl: Replace shtml link to community page
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-11-03 11:38:32 +01:00
Jonas Schäfer
dd7bae79c0 Merge branch 'feature/link-attic' into premerge 2022-08-23 21:36:07 +02:00
Kim Alvefur
923dfde2a8 Linkify revision history to attic
Comparing versions is a thing you may want to do when dealing with a
more or less living standard. Locating these versions in the attic is
often tedious since there are so many XEPs and revisions.

Linking them from the XEP revision history makes this easier, at least
where the relevant revision does exist in the attic, not all do, and
some are called jep rather than xep for historical reasons.
2022-08-08 18:46:19 +02:00
Melvin Keskin
fda950162f
xep.xsl: Show new status 'Stable' instead of 'Draft' in appendix 2022-08-05 13:27:42 +02:00
Sam Whited
bea4abe07c
Make XEP superseded more visible in HTML output
When a XEP has been superseded (or supersedes something else) it's not
always immediately obvious in the HTML output. It exists at the bottom
of the page in the appendices, but this requires a lot of digging, and
in the status message, but this is a big red blob of text that we don't
expect to differ from XEP to XEP and is harder to parse through than the
information we want being in a table.

This adds the information to a third place, the table in the header to
make it more obvious.
2022-02-18 10:11:41 -05:00
Jonas Schäfer
00ea099c7a xep.xsl: Linkify RFCs and XEP references 2022-01-19 17:54:27 +01:00
Jonas Schäfer
3f5fd31323 xep.xsl: render status Draft as Stable in dd 2022-01-19 17:54:12 +01:00
Jonas Schäfer
c1b1792811 Change wording in xep.xsl to match XEP-0001 2021-08-31 17:32:31 +02:00
Jonas Schäfer
5d6af15327 Merge branch 'feature/lang-en' into premerge 2021-06-29 19:15:27 +02:00
Emmanuel Gil Peyrot
e7e7135ddf XSLT: Use lang='en' on the html root
This tells the user agent that the page is in English, which it can then
use for various natural language operations.
2021-06-26 01:06:15 +02:00
Emmanuel Gil Peyrot
1490f7c6a1 XSLT: Use HTTPS for every common link
This avoids a potential redirect if the user agent doesn’t support HSTS.
2021-06-26 01:02:30 +02:00
Florian Schmaus
2e6226d8b7 Bump copyright notice's year to 2021 2021-06-14 08:57:09 +02:00
Jonas Schäfer
17e545543c Merge branch 'feature/cves' into premerge 2021-05-25 17:08:51 +02:00
Jonas Schäfer
2b2fee1135 Merge branch 'feature/end-fix' into premerge 2021-04-20 19:52:47 +02:00
Florian Schmaus
6a9796b71a biblatex: fix superfluous line break in bibtex-citekey-postfix
In case the XEP has not yet a shortname assigned, the transformation
would add a superfluous line break in the postfix due a missing
<xsl:text> element.
2021-04-14 19:32:11 +02:00
Kim Alvefur
5ad797700a xsl: Move 'END' to end
Dunno why there's a paragraph with the word END in it, but it was always
at the end and it seems weird to have another appendix after it.
2021-04-14 14:15:23 +02:00
Florian Schmaus
8562792345 xep.xsl: reorder 'type' and 'number' field of the biblatex entry 2021-04-13 20:56:22 +02:00
Florian Schmaus
2f0ea521d7 xep.xsl: reorder biblatex 'author' field right after 'title' field
The 'title' and 'author' field are the two most important fields,
hence it is sensible to have them up front.
2021-04-13 20:32:08 +02:00
Florian Schmaus
6e9ccbeaad xep.xsl: lowercase bibtex-citekey-postfix 2021-04-13 20:30:03 +02:00
Florian Schmaus
8670200e48 xep.xsl: use proper biblatex name list part ordering
Name lists start with the family name, follow by the given name. See
biblatex(.pdf) § 2.2.1.
2021-04-13 20:07:34 +02:00
Florian Schmaus
1339517023 xep.xsl: fix dangling closing curly brace in biblatex's author entry
Fixes: 5d186e6362 ("xep.xsl: produce BibLaTeX entry")
2021-04-13 19:57:29 +02:00
Jonas Schäfer
72d8b4b3cf xep.xsl: Ensure that the leading zeroes are preserved in citations 2021-04-13 19:25:31 +02:00
Georg Lukas
8056721f8e XEP template: add <cve> element for security vulnerabilities 2021-04-07 19:04:05 +02:00
Florian Schmaus
5d186e6362 xep.xsl: produce BibLaTeX entry
I am tired of seeing all those badly or misreferenced XEPs out
there. This produces a high-quality BibLaTeX entry that follows the
recommendations of the biblatex Package and
draft-carpenter-rfc-citation-recs-01 § 5.2 [1].

It also uses proper 'date' attribution, from the first date in the XEP
history to the date of the latest revision entry.

1: https://tools.ietf.org/html/draft-carpenter-rfc-citation-recs-01#section-5.2
2021-04-07 16:11:08 +02:00
Jonas Schäfer
0062f6c185 Use comma instead of semicolon to separate k/v-pairs in viewport meta
While a draft "standard" of the CSS Working Group of the W3C (as
much as any W3C "living document" is a "standard" in any meaning of
the word) says in a (non normative) section that both semicolon and
comma are allowed [1], the MDN has the following thing to say [2]:

> To mitigate this problem of virtual viewport […], Apple introduced
> the "viewport meta tag" […]. Apple's documentation does a good job
> explaining how web developers can use this tag, but we had to do
> some detective work to figure out exactly how to implement it in
> Fennec. For example, Safari's documentation says the content is a
> "comma-delimited list," but existing browsers and web pages use
> any mix of commas, semicolons, and spaces as separators.

This leaves us to believe that although some W3C document says that
both are ok, comma is the more portable choice.

   [1]: https://drafts.csswg.org/css-device-adapt/#viewport-meta
   [2]: https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
2021-01-07 12:04:25 +01:00
Marvin W
5434fda9a9
Add support for section5 in stylesheet (used in XEP-0060 and XEP-0327) 2020-03-08 12:15:18 +01:00
Emmanuel Gil Peyrot
6b55544477 xep.xsl: Don’t output invalid <di/> element in HTML. 2020-03-03 17:32:53 +01:00
Jonas Schäfer
d4dd1403a0 Merge branch 'feature/xep-0412' 2020-01-28 19:01:53 +01:00
Jonas Schäfer
caa93ea37f Generate a proper HTML5 document type
We were previously generating HTML5, while claiming to be
XHTML 1.0 and serving the content with text/html Content-Type.
Not ideal.

This change generates the proper HTML5 document type using a
slightly awful, but required, hack because HTML5 is using a weird
doctype format not supported by XSLT (1.0, anyways).
2020-01-22 16:34:15 +01:00
Jonas Schäfer
83195a7083 Fix ghost whitespace in authors list
Using indent='no' prevents any spurious whitespace from being
generated in the output. This ensures that user agents do not
render such whitespace in places where none should be, for example
between the <li/> elements of an authors list.

Thanks to @flowdalic for finding and reporting.
2020-01-22 16:23:29 +01:00
Emmanuel Gil Peyrot
5adc20310c XSLT: Fix spacing and missing letter in deprecated and obsolete headers. 2020-01-16 13:31:45 +01:00
Jonas Schäfer
79846a32ea Happy New Year 2020-01-02 17:46:04 +01:00
Kim Alvefur
696b2332e3 xsl: Set output mode to HTML
This makes the XEP XML viewable in browsers.
2019-04-20 00:41:51 +02:00
Jonas Schäfer
a032d17204 Hotfix against the web server misconfiguration
xmpp.v2.css isn’t served from the xeps docker, making all XEPs
render without CSS.
2019-04-06 10:58:04 +02:00
Jonas Schäfer
5c6db1475a Show both Deprecated and Obsolete if document is in either status in timeline 2019-04-06 09:41:28 +02:00
Jonas Schäfer
d034936552 Mention yaml.de in legal section 2019-04-05 17:45:04 +02:00
Jonas Schäfer
51ad9a4295 Show document lifecycle next to metadata 2019-04-05 17:40:04 +02:00
Jonas Schäfer
57c0897ab1 Re-work display of revision list entries 2019-04-05 17:39:26 +02:00
Jonas Schäfer
e77875ede6 Fix Proposed template (there was a missing space) 2019-04-05 17:39:26 +02:00
Jonas Schäfer
8ae43e3d7a Bump that copyright year 2019-04-05 17:39:26 +02:00
Jonas Schäfer
3f29a910da Support existing uses of <div class="example"> 2019-04-05 17:39:26 +02:00
Jonas Schäfer
62eea6eee1 Evil trickery to show XMPP logo and XEP number in ToC 2019-04-05 17:39:26 +02:00
Jonas Schäfer
a26c4f7d1a Fix revision history styling 2019-04-05 17:39:26 +02:00
Jonas Schäfer
07060ae5e6 Visually separate docmeta a bit from the normal content 2019-04-05 17:39:26 +02:00
Jonas Schäfer
48e6477b98 Show the ToC on the left margin if enough space is available 2019-04-05 17:39:26 +02:00
Jonas Schäfer
39199b23d8 Re-Style Iteration 1: CSS rework, some semantic stuff 2019-04-05 17:39:26 +02:00
Jonas Wielicki
1624b77dbf Fix copyright statement year
(we should fix the statement at some point)
2018-07-31 17:34:56 +02:00
Jonas Wielicki
238329a536 Fix intra-XEP links (regression from 609a081 2017-08-24 14:31:30 +02:00