1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00
Commit Graph

120 Commits

Author SHA1 Message Date
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
Jonas Wielicki
609a081f27 Add build for inbox/ 2017-08-23 14:45:07 +02:00
Sam Whited
980bc2d15f xep.xsl: Add superseded by specs as part of status line 2017-01-28 17:05:26 -06:00
Emmanuel Gil Peyrot
25867ed138 xep.xsl: Small optimisations. 2017-01-28 17:05:26 -06:00
Tobias Markmann
62083cddeb Fix note numbering for nested notes in XHTML XSL 2017-01-18 08:55:51 -06:00
Sam Whited
48d668e5f0 Update some copyright dates 2017-01-11 09:48:29 -06:00
Tobias Markmann
de06827d21 Remove duplicates from ‘Notes’ section in XHTML rendered XEPs
Test-Information:

Tested on a single XEP that it works as expected. Repeated
notes get the same note number and the notes section only
mentions each note once.
2017-01-11 09:29:07 -06:00
Sam Whited
92d9bbc899 Revert "Merge pull request #360 from SamWhited/unique_ref_notes"
This reverts commit ee2544758c, reversing
changes made to 2c4b42dbd1.
2017-01-11 09:09:47 -06:00
Sam Whited
d78f9de6c0 Don't duplicate footnotes in HTML 2017-01-09 09:56:18 -06:00
Emmanuel Gil Peyrot
054aea0ea9 xep.xsl: Improve the schemaloc > ns sentence, using quotes. 2016-10-13 23:24:09 +01:00