Skip to content

Commit

Permalink
typo; style tweaks; removed links to "Additional Resources" page
Browse files Browse the repository at this point in the history
  • Loading branch information
phfaist committed Aug 15, 2023
1 parent 45a02e3 commit 0643f1c
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion _zoodb_citations_cache/cache_compiled_citations.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _zoodb_citations_cache/cache_downloaded_info.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions eczoodb/render_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export function render_code_page(
if (code._meta?.stub) {
html += sqzhtml`
<div class="sectioncontent code-is-stub">
This page is a <b>stub</b>. We hope to complete the
information here soon! We would also be very grateful
if you were interested in helping out —
This page is a stub. We hope to complete the
information here soon! We are very grateful
if you are interested in helping out —
see our <a href="https://github.com/errorcorrectionzoo/eczoo_data/blob/main/CONTRIBUTING.md">contributing guidelines</a>.
</div>
`;
Expand Down
6 changes: 3 additions & 3 deletions site/src/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ <h1 id="contributing">Contributing</h1>
<a
target="_blank"
href="https://github.com/errorcorrectionzoo/eczoo_data/blob/main/CONTRIBUTING.md"
>contributing guidlines</a>.</p>
>contributing guidelines</a>.</p>

<h1>Citation</h1>

Expand All @@ -65,12 +65,12 @@ <h1>Citation</h1>
you cite us! Here's a <i>BibTeX</i> blurb you could use:
</p>

<div class="boxedcontent bibtex">@book{ErrorCorrectionZoo,
<pre class="boxedcontent bibtex">@book{ErrorCorrectionZoo,
title={The Error Correction Zoo},
year={{ '{' + get_current_year() + '}' }},
editor={Victor V. Albert and Philippe Faist},
url={https://errorcorrectionzoo.org/}
}</div>
}</pre>

<h1>Licensing information</h1>
<p><a rel="license"
Expand Down
2 changes: 1 addition & 1 deletion site/src/additional_resources.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Additional resources'
tags: ['sitePage']
tags: [] # ['sitePage'] stop listing this page in sitemap.xml
---

<h1>Some links to additional resources</h1>
Expand Down
12 changes: 6 additions & 6 deletions site/src/c/c.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,11 @@ const render = async (data) => {
code_yml_filename: code._zoodb.source_file_path}))}`
);
const code_bibtex = `@incollection{eczoo_${code.code_id},
title={${ code.name.flm_text }},
booktitle={The Error Correction Zoo},
year={${code_citation_year}},
editor={Albert, Victor V. and Faist, Philippe},
url={https://errorcorrectionzoo.org${code_ref_link}}
title={${ code.name.flm_text }},
booktitle={The Error Correction Zoo},
year={${code_citation_year}},
editor={Albert, Victor V. and Faist, Philippe},
url={https://errorcorrectionzoo.org${code_ref_link}}
}`;

const code_name_text = flmrendertext(code.name);
Expand Down Expand Up @@ -320,7 +320,7 @@ url={https://errorcorrectionzoo.org${code_ref_link}}
<dt>Cite as:</dt>
<dd class="boxedcontent">${ code_text_citation }</dd>
<dt>BibTeX:</dt>
<dd class="boxedcontent bibtex">${ code_bibtex }</dd>
<dd class="boxedcontent"><pre class="bibtex">${ code_bibtex }</pre></dd>
</dl>
</div>
<div class="code-popup-info-frame"
Expand Down
3 changes: 1 addition & 2 deletions site/src/index.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,12 @@ async function render(data)
<h1>More</h1>
<ul class="navlinks">
<li><a href="/edit_code">Add new code</a></li>
<li><a href="/additional_resources">Additional resources</a></li>
<li><a href="/team">Team</a></li>
<li><a href="/about">About</a></li>
<li><a href="javascript:window.eczColorSchemeHandler.toggle();">🌒</a></li>
</ul>
</nav>`;

//<li><a href="/additional_resources">Additional resources</a></li> -- unused

//
// BOX 4: RANDOM CODE PAGE
Expand Down
19 changes: 13 additions & 6 deletions site/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ h2 {
margin: 0.7em 0px 0.7em 0pxn;
}

p, ul, ol {
p, ul, ol, pre {
// remember, top margin of next element overlaps with bottom margin of previous one
margin-top: 2*$parskip-half-length;
margin-bottom: 2*$parskip-half-length;
}
p:first-child, ul:first-child, ol:first-child {
p:first-child, ul:first-child, ol:first-child, pre:first-child {
margin-top: 0px !important;
}
p:last-child, ul:last-child, ol:last-child {
p:last-child, ul:last-child, ol:last-child, pre:last-child {
margin-bottom: 0px !important;
}

Expand All @@ -93,6 +93,12 @@ dd {
}


pre, code {
font-family: monospace;
font-size: 12px;
line-height: 1.3em;
}


details > summary > span {
cursor: pointer;
Expand Down Expand Up @@ -481,12 +487,13 @@ a.linkcodegraph:hover {
.boxedcontent {

background-color: $boxedcontent-background-color;
padding: 5px;
padding: .5em;

border: solid 1px $boxedcontent-border-color;
border: solid .4pt var(--boxedcontent-border-color);

user-select: contain;
border-radius: 3px;

user-select: contain;
}
.bibtex {
font-family: monospace;
Expand Down
2 changes: 1 addition & 1 deletion site/stylesheets/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ html {
--discreet-border-color: rgba(120, 120, 140, 0.15);
--a-linkcodegraph-hover-shadow-color: rgba(0,0,128,0.3);
--boxedcontent-border-color: rgba(120, 120, 140, 0.5);
--boxedcontent-background-color: rgba(240,240,255,0.5);
--boxedcontent-background-color: rgba(240,240,255,.3);
--navigation-collapsed-panel-background-color: rgba(245,245,255,1.0);
--visual-highlight-color: rgba(255,230,70,0.8);
--tippy-box-shadow: 0 0 20px 4px rgba(154,161,177,.15), 0 4px 80px -8px rgba(36,40,47,.25), 0 4px 4px -2px rgba(91,94,105,.15);
Expand Down
2 changes: 1 addition & 1 deletion site/templates/layout/base_page.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const get_page_header_navigation_links_default = async (data) => {
heading: null,
links: [
{ href: '/edit_code', html: 'Add new code' },
{ href: '/additional_resources', html: 'Additional resources' },
//{ href: '/additional_resources', html: 'Additional resources' },
{ href: '/team', html: 'Team' },
{ href: '/about', html: 'About' },
]
Expand Down

0 comments on commit 0643f1c

Please sign in to comment.