mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 12:45:50 +00:00
css tweaks for pdf
This commit is contained in:
4
css/pdf.css
Normal file
4
css/pdf.css
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
a:after {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -69,7 +69,6 @@ def parse_markdown(md, target=DEFAULT_TARGET, pages=None):
|
|||||||
#buttonize links ending in >
|
#buttonize links ending in >
|
||||||
print("buttonizing try-it links...")
|
print("buttonizing try-it links...")
|
||||||
buttonlinks = soup.find_all("a", string=re.compile(">$"))
|
buttonlinks = soup.find_all("a", string=re.compile(">$"))
|
||||||
## print("buttonlinks:",buttonlinks)
|
|
||||||
for link in buttonlinks:
|
for link in buttonlinks:
|
||||||
if "class" in link.attrs:
|
if "class" in link.attrs:
|
||||||
link["class"].append("button")
|
link["class"].append("button")
|
||||||
@@ -94,7 +93,6 @@ def parse_markdown(md, target=DEFAULT_TARGET, pages=None):
|
|||||||
print("done")
|
print("done")
|
||||||
|
|
||||||
print("re-rendering HTML")
|
print("re-rendering HTML")
|
||||||
#html2 = soup.prettify()
|
|
||||||
html2 = str(soup)
|
html2 = str(soup)
|
||||||
print("done")
|
print("done")
|
||||||
return html2
|
return html2
|
||||||
@@ -254,13 +252,13 @@ if __name__ == "__main__":
|
|||||||
print("making a pdf...")
|
print("making a pdf...")
|
||||||
make_pdf(args.pdf)
|
make_pdf(args.pdf)
|
||||||
print("pdf done")
|
print("pdf done")
|
||||||
#Not an accident that we go on to re-gen files in non-PDF format
|
|
||||||
|
|
||||||
if args.watch:
|
#Not an accident that we go on to re-gen files in non-PDF format
|
||||||
print("watching for changes...")
|
|
||||||
watch(args.pre_parse, args.pdf, args.target)
|
|
||||||
else:
|
|
||||||
print("rendering pages now")
|
print("rendering pages now")
|
||||||
render_pages(precompiled=args.pre_parse, target=args.target)
|
render_pages(precompiled=args.pre_parse, target=args.target)
|
||||||
print("all done")
|
print("all done")
|
||||||
|
|
||||||
|
if args.watch:
|
||||||
|
print("watching for changes...")
|
||||||
|
watch(args.pre_parse, args.pdf, args.target)
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,8 @@
|
|||||||
<link href="css/main.css" rel="stylesheet" />
|
<link href="css/main.css" rel="stylesheet" />
|
||||||
<link href="css/custom.css" rel="stylesheet" />
|
<link href="css/custom.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<link href="css/pdf.css" rel="stylesheet" type="text/css" />
|
||||||
|
|
||||||
<link rel="shortcut icon" href="favicon.ico?v=2" type="image/x-icon" />
|
<link rel="shortcut icon" href="favicon.ico?v=2" type="image/x-icon" />
|
||||||
<link rel="icon" href="favicon.ico?v=2" type="image/x-icon" />
|
<link rel="icon" href="favicon.ico?v=2" type="image/x-icon" />
|
||||||
|
|
||||||
|
|||||||
2
vendor/flatdoc/v/0.8.0/theme-white/style.css
vendored
2
vendor/flatdoc/v/0.8.0/theme-white/style.css
vendored
@@ -122,7 +122,7 @@ input {
|
|||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: #3a87ad;
|
color: #3a87ad;
|
||||||
text-decoration: none;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #228a8a;
|
color: #228a8a;
|
||||||
|
|||||||
Reference in New Issue
Block a user