Mercurial > paster-www
changeset 4:fc87d1928dab
unify
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 17 Dec 2020 11:23:51 +0100 |
parents | 172d55236ac4 |
children | 1b128d430637 |
files | .hgignore Makefile css/no-class.css templates/template.html |
diffstat | 4 files changed, 588 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Thu Dec 17 11:23:51 2020 +0100 @@ -0,0 +1,3 @@ +^paster-(\d+)\.(\d+)\.(\d+) +^www$ +\.html$
--- a/Makefile Wed Dec 16 15:18:57 2020 +0100 +++ b/Makefile Thu Dec 17 11:23:51 2020 +0100 @@ -1,7 +1,7 @@ # # Makefile -- basic Makefile for paster # -# Copyright (c) 2020 David Demelier <markand@malikania.fr> +# Copyright (c) 2011-2019 David Demelier <markand@malikania.fr> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -19,60 +19,66 @@ .POSIX: SRCS= index.md +PROJECT= paster +VERSION= 0.2.1 +MAN1= paster-${VERSION}/paster.1 +MAN8= paster-${VERSION}/pasterd-clean.8 \ + paster-${VERSION}/pasterd.8 + OBJS= ${SRCS:.md=.html} PANDOC= pandoc -PANDOC_FLAGS= -f markdown -t html5 --template templates/template.html +PANDOC_FLAGS= -f markdown -t html5 --no-highlight --template templates/template.html MANDOC= mandoc MANDOC_HTML= -T html -O man=%N.html MANDOC_PDF= -T pdf -VERSION= 0.2.1 -SOURCE= paster-${VERSION}.tar.xz -WRKDIR= paster-${VERSION} +DIST= ${PROJECT}-${VERSION}.tar.xz +WRKDIR= ${PROJECT}-${VERSION} -MAN1= paster-${VERSION}/paster.1 -MAN8= paster-${VERSION}/pasterd.8 \ - paster-${VERSION}/pasterd-clean.8 +MAN1_HTML= ${MAN1:.1=.html} +MAN1_PDF= ${MAN1:.1=.pdf} +MAN8_HTML= ${MAN8:.8=.html} +MAN8_PDF= ${MAN8:.8=.pdf} -MAN1HTML= ${MAN1:.1=.html} -MAN1PDF= ${MAN1:.1=.pdf} -MAN8HTML= ${MAN8:.8=.html} -MAN8PDF= ${MAN8:.8=.pdf} +MAN_OBJS= ${MAN1_HTML} ${MAN1_PDF} \ + ${MAN8_HTML} ${MAN8_PDF} .SUFFIXES: -.SUFFIXES: .html .md .pdf .1 .8 .in +.SUFFIXES: .1 .8 .html .md .pdf all: www .md.html: ${PANDOC} ${PANDOC_FLAGS} -o $@ $< -.1.html .8.html: +.1.html: + ${MANDOC} < $< ${MANDOC_HTML} > $@ +.8.html: ${MANDOC} < $< ${MANDOC_HTML} > $@ -.1.pdf .8.pdf: +.1.pdf: + ${MANDOC} < $< ${MANDOC_PDF} > $@ +.8.pdf: ${MANDOC} < $< ${MANDOC_PDF} > $@ +${DIST}: + wget -q http://releases.malikania.fr/${PROJECT}/${VERSION}/$@ -O $@ + +${WRKDIR}: ${DIST} + tar -xJf $< + ${MAN1} ${MAN8}: ${WRKDIR} - ${MAKE} -C ${WRKDIR} paster.1 pasterd.8 pasterd-clean.8 - -${FILES}: templates/template.html + ${MAKE} -C $< ${@F} -${SOURCE}: - wget -q http://releases.malikania.fr/paster/${VERSION}/$@ -O $@ +${OBJS}: css/no-class.css templates/template.html -${WRKDIR}: ${SOURCE} - tar -xJf ${SOURCE} - -www: ${OBJS} ${MAN1HTML} ${MAN1PDF} ${MAN8HTML} ${MAN8PDF} +www: ${OBJS} ${MAN_OBJS} mkdir -p www cp -R css www - cp -R ${OBJS} ${MAN1HTML} ${MAN1PDF} ${MAN8HTML} ${MAN8PDF} www + cp ${OBJS} ${MAN_OBJS} www clean: - rm -rf www - rm -f ${OBJS} - rm -f ${MAN1HTML} ${MAN8HTML} - rm -f ${MAN1PDF} ${MAN8PDF} - rm -rf ${WRKDIR} ${SOURCE} + rm -rf www ${WRKDIR} + rm -f ${DIST} + rm -f ${OBJS} ${MAN_OBJS} -.PHONY: all clean www +.PHONY: all clean
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/no-class.css Thu Dec 17 11:23:51 2020 +0100 @@ -0,0 +1,546 @@ +/*! sanitize.css v5.0.0 | CC0 License | github.com/jonathantneal/sanitize.css */ +*, +::after, +::before { + background-repeat: no-repeat; + box-sizing: inherit +} +::after, +::before { + text-decoration: inherit; + vertical-align: inherit +} +html { + box-sizing: border-box; + cursor: default; + -ms-text-size-adjust: 100%; + -webkit-text-size-adjust: 100% +} +article, +aside, +footer, +header, +nav, +section { + display: block +} +body { + max-width: 960px; + margin: 0 auto; +} +h1 { + font-size: 2em; + margin: .67em 0 +} +figcaption, +figure, +main { + display: block +} +figure { + margin: 1em 40px +} +hr { + box-sizing: content-box; + height: 0; + overflow: visible +} +nav ol, +nav ul { + list-style: none +} +pre { + font-family: monospace,monospace; + font-size: 1em +} +a { + background-color: transparent; + -webkit-text-decoration-skip: objects +} +abbr[title] { + border-bottom: none; + text-decoration: underline; + text-decoration: underline dotted +} +b, +strong { + font-weight: inherit +} +b, +strong { + font-weight: bold +} +code, +kbd, +samp { + font-family: monospace,monospace; + font-size: 1em +} +dfn { + font-style: italic +} +mark { + background-color: #ff0; + color: #000 +} +small { + font-size: 80% +} +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline +} +sub { + bottom: -.25em +} +sup { + top: -.5em +} +::-moz-selection { + background-color: #b3d4fc; + color: #000; + text-shadow: none +} +::selection { + background-color: #b3d4fc; + color: #000; + text-shadow: none +} +audio, +canvas, +iframe, +img, +svg, +video { + vertical-align: middle +} +audio, +video { + display: inline-block +} +audio:not([controls]) { + display: none; + height: 0 +} +img { + border-style: none +} +svg { + fill: currentColor +} +svg:not(:root) { + overflow: hidden +} +table { + border-collapse: collapse +} +button, +input, +optgroup, +select, +textarea { + margin: 0 +} +button, +input, +select, +textarea { + background-color: transparent; + color: inherit; + font-size: inherit; + line-height: inherit +} +button, +input { + overflow: visible +} +button, +select { + text-transform: none +} +[type=reset], +[type=submit], +button, +html [type=button] { + -webkit-appearance: button +} +[type=button]::-moz-focus-inner, +[type=reset]::-moz-focus-inner, +[type=submit]::-moz-focus-inner, +button::-moz-focus-inner { + border-style: none; + padding: 0 +} +[type=button]:-moz-focusring, +[type=reset]:-moz-focusring, +[type=submit]:-moz-focusring, +button:-moz-focusring { + outline: 1px dotted ButtonText +} +legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal +} +progress { + display: inline-block; + vertical-align: baseline +} +textarea { + overflow: auto; + resize: vertical +} +[type=checkbox], +[type=radio] { + box-sizing: border-box; + padding: 0 +} +[type=number]::-webkit-inner-spin-button, +[type=number]::-webkit-outer-spin-button { + height: auto +} +[type=search] { + -webkit-appearance: textfield; + outline-offset: -2px +} +[type=search]::-webkit-search-cancel-button, +[type=search]::-webkit-search-decoration { + -webkit-appearance: none +} +::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit +} +details, +menu { + display: block +} +summary { + display: list-item +} +canvas { + display: inline-block +} +template { + display: none +} +[tabindex], +a, +area, +button, +input, +label, +select, +summary, +textarea { + -ms-touch-action: manipulation; + touch-action: manipulation +} +[hidden] { + display: none +} +[aria-busy=true] { + cursor: progress +} +[aria-controls] { + cursor: pointer +} +[aria-hidden=false][hidden]:not(:focus) { + clip: rect(0,0,0,0); + display: inherit; + position: absolute +} +[aria-disabled] { + cursor: default +} +/*! no-class.css v1.0.0 | MIT License | https://github.com/davidpaulsson/no-class */ +html { + font-size: 62.5%; + -webkit-font-kerning: normal; + font-kerning: normal; + font-synthesis: none; + text-rendering: optimizeLegibility +} +body { + font-family: HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif; + font-weight: 300; + line-height: 1.6; + font-size: 16px; + font-size: 1.6rem +} +h1 { + font-weight: 300; + line-height: 1; + margin-top: 1em; + margin-bottom: 1em; + font-size: 36px; + font-size: 3.6rem +} +h2 { + font-weight: 300; + line-height: 1; + margin-top: 1em; + margin-bottom: 1em; + font-size: 30px; + font-size: 3rem +} +h3 { + font-weight: 300; + line-height: 1; + margin-top: 1em; + margin-bottom: 1em; + font-size: 24px; + font-size: 2.4rem +} +h4 { + font-weight: 300; + line-height: 1; + margin-top: 1em; + margin-bottom: 1em; + font-size: 20px; + font-size: 2rem +} +h5 { + font-weight: 300; + line-height: 1; + margin-top: 1em; + margin-bottom: 1em; + font-size: 16px; + font-size: 1.6rem +} +h6 { + font-weight: 300; + line-height: 1; + margin-top: 1em; + margin-bottom: 1em; + font-size: 14px; + font-size: 1.4rem +} +p { + margin-bottom: 1em +} +code { + font-family: Consolas,Monaco,'Andale Mono',monospace; + font-size: 80%; + vertical-align: baseline +} +pre { + overflow: auto; + margin: .5em 0; + padding: 0 1em!important; + background: #f5f2f0 +} +sub, +sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline +} +sup { + top: -.5em +} +sub { + bottom: -.25em +} +cite { + font-style: italic +} +abbr, +acronym { + cursor: help; + border-bottom: .1em dotted +} +blockquote, +q { + margin-bottom: 1em; + padding-left: 1em; + quotes: none; + border-left: 3px solid rgba(0,0,0,.1) +} +ol, +ul { + margin-bottom: 1em; + padding-left: 1.5em +} +ol ol, +ol ul, +ul ol, +ul ul { + margin-bottom: 0 +} +a { + text-decoration: none; + color: #3498db; + border-bottom: 1px solid #3498db +} +a:hover { + cursor: pointer; + color: #217dbb; + border-bottom: 0 +} +::-moz-selection { + color: #000; + background: rgba(0,0,0,.1); + text-shadow: none +} +::selection { + color: #000; + background: rgba(0,0,0,.1); + text-shadow: none +} +table { + width: 100% +} +td, +th { + padding: .25em; + text-align: left +} +tbody tr:nth-of-type(odd) { + background-color: #f7f7f7 +} +[colspan] { + text-align: center +} +[colspan='1'] { + text-align: left +} +[rowspan] { + vertical-align: middle +} +[rowspan='1'] { + vertical-align: top +} +hr { + height: 1px; + margin: 1em 0; + border: none; + background-color: #ddd +} +fieldset { + min-width: 0; + margin: 0; + padding: 1em; + border: 1px solid #ddd; + border-radius: 4px +} +fieldset legend { + font-weight: 700; + line-height: inherit; + display: block; + padding: 0 .5em; + border: 0; + background-color: #fff; + font-size: 16px; + font-size: 1.6rem +} +label { + font-weight: 700; + display: inline-block; + display: block; + max-width: 100%; + margin-bottom: 5px +} +input, +textarea { + width: 100%; + margin-bottom: 1em; + padding: .25em .5em; + border: 1px solid #ddd; + border-radius: 4px +} +input:hover, +textarea:hover { + border: 1px solid #c4c4c4 +} +input:focus, +textarea:focus { + border: 1px solid #3498db; + outline: 0 +} +button { + font-weight: 700; + line-height: 1.4; + display: inline-block; + padding: .25em .55em; + cursor: pointer; + white-space: nowrap; + text-decoration: none; + color: inherit; + border: 1px solid #d5d5d5; + border-radius: 4px; + background-color: #eee; + background-image: linear-gradient(#fcfcfc,#eee); + background-repeat: no-repeat; + text-shadow: 0 1px 0 #fff +} +button:hover { + text-decoration: none; + color: inherit; + border: 1px solid #ccc; + background-color: #ddd; + background-image: linear-gradient(#eee,#ddd) +} +button:focus { + text-decoration: none; + border-color: #3498db; + outline: 0 +} +button:active { + border-color: #b5b5b5; + background-color: #dcdcdc; + background-image: none; + box-shadow: inset 0 2px 4px rgba(0,0,0,.15) +} +button:disabled { + color: #999; + background-color: #efefef; + background-image: none +} +button:disabled:hover { + cursor: not-allowed +} +aside { + background-color: #eee; + padding: 0 .5em; + border-radius: 4px +} +main { + max-width: 960px; + margin: 0 auto; + padding: 20px +} +header ul { + padding-left: 0; + list-style-type: none +} +header li { + text-align: center; + border-bottom: 1px solid #ddd +} +@media (min-width:40em) { + header li { + display: inline-block; + text-align: left; + border-bottom: none + } + header li:first-child a { + padding-left: 0 + } + header li:last-child a { + padding-right: 0 + } +} +header li a { + display: block; + width: 100%; + padding: .25em .5em; + border-bottom: none +}
--- a/templates/template.html Wed Dec 16 15:18:57 2020 +0100 +++ b/templates/template.html Thu Dec 17 11:23:51 2020 +0100 @@ -1,7 +1,9 @@ <!DOCTYPE html> <html> <head> + <meta charset="UTF-8"> <link rel="stylesheet" href="css/no-class.css" type="text/css"> + <title>$title$</title> </head> <body> $body$