Skip to content

Commit 12716fd

Browse files
committed
Further cleanup
1 parent 3d2ef2c commit 12716fd

4 files changed

Lines changed: 2 additions & 99 deletions

File tree

addribbon.sed

Lines changed: 0 additions & 3 deletions
This file was deleted.

addstyle.sed

Lines changed: 0 additions & 28 deletions
This file was deleted.

main.mk

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ $(XSLTDIR):
8383
%.cleanxml: %.xml $(LIBDIR)/clean-for-DTD.xslt $(LIBDIR)/rfc2629.xslt
8484
$(xsltproc) --novalid $(LIBDIR)/clean-for-DTD.xslt $< > $@
8585

86-
%.htmltmp: %.xml $(LIBDIR)/rfc2629.xslt
87-
$(xsltproc) --novalid $(LIBDIR)/rfc2629.xslt $< > $@
86+
%.html: %.xml $(LIBDIR)/rfc2629.xslt $(LIBDIR)/style.css
87+
$(xsltproc) --novalid --stringparam xml2rfc-ext-css-contents "$$(cat $(LIBDIR)/style.css)" $(LIBDIR)/rfc2629.xslt $< > $@
8888

8989
%.txt: %.cleanxml
9090
$(xml2rfc) $(XML2RFCV3OPTION) $< -o $@ --text
@@ -102,15 +102,6 @@ else
102102
$(xml2rfc) $(XML2RFCV3OPTION) $< -o $@ --raw
103103
endif
104104

105-
%.html: %.htmltmp $(LIBDIR)/addstyle.sed $(LIBDIR)/style.css
106-
# Note that the extra `echo` here is to work around a limitation in addstyle.sed
107-
ifneq (,$(if $(ENABLE_RIBBON),$(CI_REPO_FULL),))
108-
(cat $<;echo) | sed -f $(LIBDIR)/addstyle.sed -f $(LIBDIR)/addribbon.sed | \
109-
sed -e 's~{SLUG}~$(CI_REPO_FULL)~' > $@
110-
else
111-
(cat $<;echo) | sed -f $(LIBDIR)/addstyle.sed > $@
112-
endif
113-
114105
%.pdf: %.txt
115106
$(enscript) --margins 76::76: -B -q -p - $< | $(ps2pdf) - $@
116107

style.css

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -209,60 +209,3 @@ ul.toc li {
209209
margin-left: 1.2em;
210210
}
211211
}
212-
213-
.github-fork-ribbon-wrapper {
214-
display: none;
215-
}
216-
@media screen and (min-width: 800px) {
217-
/* "Fork me on GitHub" CSS ribbon based on
218-
* https://github.com/simonwhitaker/github-fork-ribbon-css
219-
*/
220-
.github-fork-ribbon {
221-
position: absolute;
222-
padding: 2px 0;
223-
background-color: #a00;
224-
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
225-
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.5);
226-
font: 700 12px "Helvetica Neue", Helvetica, Arial, sans-serif;
227-
228-
pointer-events: auto;
229-
230-
top: 38px;
231-
right: -45px;
232-
233-
transform: rotate(45deg);
234-
}
235-
236-
.github-fork-ribbon a[href],
237-
.github-fork-ribbon a[href]:hover {
238-
color: #fff;
239-
background-color: transparent;
240-
text-decoration: none;
241-
text-shadow: 0 -1px rgba(0, 0, 0, 0.5);
242-
text-align: center;
243-
244-
width: 190px;
245-
line-height: 18px;
246-
247-
display: inline-block;
248-
padding: 2px 0;
249-
250-
border: 1.5px dotted #fff;
251-
border-color: rgba(255, 255, 255, 0.6);
252-
}
253-
254-
.github-fork-ribbon-wrapper {
255-
display: block;
256-
width: 130px;
257-
height: 130px;
258-
position: absolute;
259-
overflow: hidden;
260-
top: 0; right: 0;
261-
z-index: 2;
262-
pointer-events: none;
263-
}
264-
}
265-
@media screen and (min-width: 1000px) {
266-
.github-fork-ribbon-wrapper {
267-
position: fixed;
268-
}

0 commit comments

Comments
 (0)