Skip to content

Commit

Permalink
Added a new Library link
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpar committed Apr 17, 2020
1 parent eecfce9 commit 64d830c
Show file tree
Hide file tree
Showing 48 changed files with 62 additions and 73 deletions.
13 changes: 10 additions & 3 deletions _includes/explorer/documents.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,20 @@
{%- if instance[0] contains '@' -%}{%- continue -%}{%- endif -%}
{%- capture docs_path4 -%}{%- endcapture -%}
{%- if instance[0] != "" -%}{%- capture docs_path4 -%}/{{ instance[0] }}{%- endcapture %}{%- endif -%}
{%- capture docs_url -%}{{ docs_path1 }}{{ docs_path2 }}{{ docs_path3 }}{{ docs_path4 }}{%- endcapture -%}
{%- capture docs_link -%}{% if instance[1]['@permalink'] %}{{ instance[1]['@permalink'] }}{% else %}/documents{{ docs_url }}/{% endif %}{%- endcapture -%}
{% if instance[1]['@permalink'] %}
{%- capture docs_link -%}{{ instance[1]['@permalink'] }}{%- endcapture -%}
{%- capture docs_url -%}{{ docs_link | replace: "/documents","" | append: "@" | replace: "/@","" }}{%- endcapture -%}
{% else %}
{%- capture docs_url -%}{{ docs_path1 }}{{ docs_path2 }}{{ docs_path3 }}{{ docs_path4 }}{%- endcapture -%}
{%- capture docs_link -%}/documents{{ docs_url }}/{%- endcapture -%}
{% endif %}
{%- assign docs_item = instance[1]['@title'] -%}
{%- if instance[1]['@permalink'] or instance[1]['@documents'] -%}
{%- capture docs_item -%}<a href="{{ docs_link }}">{{ docs_item }}</a>{%- endcapture -%}
{%- endif %}
{%- capture attrs -%}id="documents-{{ docs_url | remove_first: "/" | replace: "/", "-" }}" class="pcjs-explorer-item"{%- if instance[1]['@desc'] %} title="{{ instance[1]['@desc'] }}"{%- endif -%}{%- endcapture %}
{%- capture docs_id -%}documents{{ docs_url | replace: "/", "-" }}{%- endcapture -%}
{%- if docs_id == "documents" -%}{%- assign docs_id = "library" -%}{%- endif -%}
{%- capture attrs -%}id="{{ docs_id }}" class="pcjs-explorer-item"{%- if instance[1]['@desc'] %} title="{{ instance[1]['@desc'] }}"{%- endif -%}{%- endcapture %}
<li {{ attrs }}>{{ docs_item }}</li>
{%- endfor -%}
{%- if subcategory[0] != "@instances" %}
Expand Down
1 change: 1 addition & 0 deletions _includes/explorer/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
let element;
if (prefix) path = prefix + path;
let id = path.substr(1).replace(/\//g, '-').replace(/-$/, '');
if (id == "documents") id = "library";
do {
element = document.getElementById(id);
if (element) break;
Expand Down
2 changes: 1 addition & 1 deletion _includes/gallery/alldocs.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3>{{ include.title | default: "All Documents" }}</h3>
{%- capture target %}/{{ root | replace: "hardware","machines" }}{% endcapture %}
{%- assign title = data['@title'] | default: item['@title'] %}
{%- capture link %}{{ target }}/{% endcapture %}
{%- include gallery/documents.html target=target title=title link=link %}
{%- include gallery/documents.html target=target title=title link=link style="left" %}
{%- assign alldocs_exist = true %}
{%- endif %}
{%- endif %}
Expand Down
4 changes: 2 additions & 2 deletions _includes/gallery/documents.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% assign title = include.title | default: "Documents" %}
{% assign group = include.group | default: "@documents" %}
{% assign group_link = include.link %}
{% assign group_id = title | replace: "@", "" | replace: " ", "-" | downcase %}
{% assign group_id = title | slugify %}
{% assign cover_width = include.width | default: "200" %}
{% assign cover_height = include.height | default: "" %}
{% assign path = include.path | default: include.target | default: page.permalink %}
Expand Down Expand Up @@ -70,7 +70,7 @@ <h4 id="{{ group_id }}">{%- if group_link -%}<a href="{{ group_link }}">{{ title
{%- assign doc_tags = doc['@tags'] | default: "" -%}
{%- if doc_title and doc_title != "" and doc_tags contains doc_tag -%}
{%- assign doc_file = doc['@file'] -%}
{%- assign doc_id = doc_file | replace: ".pdf","" | replace: ".png","" | default: doc_title | slugify -%}
{%- assign doc_id = doc_file | default: doc_title | slugify -%}
{%- capture doc_path -%}{{ cur_path }}/{{ doc_file }}{%- endcapture -%}
{%- assign doc_link = doc['@link'] | default: doc_path -%}
{%- assign doc_cover = doc['@cover'] | default: "/documents/covers/default.jpg" -%}
Expand Down
87 changes: 41 additions & 46 deletions configs/documents.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,6 @@
"@source": "PCjs",
"@tags": "x86"
},
{
"@title": "The Undocumented PC (2nd Edition)",
"@author": "Frank van Gilluwe",
"@file": "The_Undocumented_PC--Second_Edition.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9gqB2ir5cexJmwbxuTA?e=A3siuY",
"@cover": ".jpg",
"@source": "PCjs",
"@tags": "ibmpc"
},
{
"@title": "The Zen of Assembly Language",
"@author": "Michael Abrash",
Expand Down Expand Up @@ -313,161 +304,161 @@
"@documents": [
{
"@title": "Microsoft Languages Newsletter, Vol. 1-1",
"@file": "PCTJ-1986-01.pdf",
"@file": "PCTJ-1986-01-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-2",
"@file": "PCTJ-1986-02.pdf",
"@file": "PCTJ-1986-02-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-3",
"@file": "PCTJ-1986-03.pdf",
"@file": "PCTJ-1986-03-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-4",
"@file": "PCTJ-1986-04.pdf",
"@file": "PCTJ-1986-04-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-5",
"@file": "PCTJ-1986-05.pdf",
"@file": "PCTJ-1986-05-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-6",
"@file": "PCTJ-1986-06.pdf",
"@file": "PCTJ-1986-06-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-7",
"@file": "PCTJ-1986-07.pdf",
"@file": "PCTJ-1986-07-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-8",
"@file": "PCTJ-1986-08.pdf",
"@file": "PCTJ-1986-08-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-9",
"@file": "PCTJ-1986-09.pdf",
"@file": "PCTJ-1986-09-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-10",
"@file": "PCTJ-1986-10.pdf",
"@file": "PCTJ-1986-10-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-11",
"@file": "PCTJ-1986-11.pdf",
"@file": "PCTJ-1986-11-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 1-12",
"@file": "PCTJ-1986-12.pdf",
"@file": "PCTJ-1986-12-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-1",
"@file": "PCTJ-1987-01.pdf",
"@file": "PCTJ-1987-01-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-2",
"@file": "PCTJ-1987-02.pdf",
"@file": "PCTJ-1987-02-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-3",
"@file": "PCTJ-1987-03.pdf",
"@file": "PCTJ-1987-03-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-4",
"@file": "PCTJ-1987-04.pdf",
"@file": "PCTJ-1987-04-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-5",
"@file": "PCTJ-1987-05.pdf",
"@file": "PCTJ-1987-05-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-6",
"@file": "PCTJ-1987-06.pdf",
"@file": "PCTJ-1987-06-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-7",
"@file": "PCTJ-1987-07.pdf",
"@file": "PCTJ-1987-07-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-8",
"@file": "PCTJ-1987-08.pdf",
"@file": "PCTJ-1987-08-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-9",
"@file": "PCTJ-1987-09.pdf",
"@file": "PCTJ-1987-09-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-10",
"@file": "PCTJ-1987-10.pdf",
"@file": "PCTJ-1987-10-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
},
{
"@title": "Microsoft Languages Newsletter, Vol. 2-11",
"@file": "PCTJ-1987-11.pdf",
"@file": "PCTJ-1987-11-MLN.pdf",
"@link": "https://1drv.ms/u/s!ArcO_mFRe1Z9gt1sUv2c5KzRTZRGfA?e=11iLnp",
"@cover": ".jpg",
"@source": "PCjs"
Expand Down Expand Up @@ -1147,103 +1138,103 @@
"@documents": [
{
"@title": "Preliminary Discussion of the Logical Design of an Electronic Computing Instrument (Pomerene)",
"@file": "1946-06-28--Preliminary Discussion of the Logical Design of an Electronic Computing Instrument (Pomerene).pdf",
"@file": "1946-06-28--Preliminary_Discussion_of_the_Logical_Design_of_an_Electronic_Computing_Instrument-Pomerene.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grV7M0pbf40DJ4Dh-A?e=SAF3Ay",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "First Progress Report",
"@file": "1947-01-01--First Progress Report.pdf",
"@file": "1947-01-01--First_Progress_Report.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grV4ArnBifdbfjcL_w?e=lSPHvu",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Planning and Coding of Problems for an Electronic Computing Instrument Volume I-III",
"@file": "1947-04-01--Planning and Coding of Problems for an Electronic Computing Instrument Volume I-III.pdf",
"@file": "1947-04-01--Planning_and_Coding_of_Problems_for_an_Electronic_Computing_Instrument_Volume_I-III.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grhb2dQou3dlDHUTuQ?e=eTHSr8",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Second Progress Report",
"@file": "1947-07-01--Second Progress Report.pdf",
"@file": "1947-07-01--Second_Progress_Report.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grhZnqWtH6skeRPw8g?e=MdVxdJ",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Preliminary Discussion of the Logical Design of an Electronic Computing Instrument",
"@file": "1947-09-02--Preliminary Discussion of the Logical Design of an Electronic Computing Instrument (Scan).pdf",
"@file": "1947-09-02--Preliminary_Discussion_of_the_Logical_Design_of_an_Electronic_Computing_Instrument-Scan.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grVz9pjWlNhZTZkxNQ?e=vd7aKK",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Third Progress Report",
"@file": "1948-01-01--Third Progress Report.pdf",
"@file": "1948-01-01--Third_Progress_Report.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grV1t6ytR6dOdhNdMQ?e=gD0kix",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Planning and Coding of Problems for an Electronic Computing Instrument Volume II",
"@file": "1948-04-15--Planning and Coding of Problems for an Electronic Computing Instrument Volume II.pdf",
"@file": "1948-04-15--Planning_and_Coding_of_Problems_for_an_Electronic_Computing_Instrument_Volume_II.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grV9ydwIr_A5xZY0Gw?e=1hx356",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Fourth Progress Report",
"@file": "1948-07-01--Fourth Progress Report.pdf",
"@file": "1948-07-01--Fourth_Progress_Report.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grdBu1ICZ8NpdblkZQ?e=VNQuLp",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Magnetic Drum Memory",
"@file": "1948-07-01--Magnetic Drum Memory.pdf",
"@file": "1948-07-01--Magnetic_Drum_Memory.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grVyp1t3l0jFHdpSwQ?e=5UIXxR",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Planning and Coding of Problems for an Electronic Computing Instrument Volume III",
"@file": "1948-08-16--Planning and Coding of Problems for an Electronic Computing Instrument Volume III.pdf",
"@file": "1948-08-16--Planning_and_Coding_of_Problems_for_an_Electronic_Computing_Instrument_Volume_III.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grV8NpRPrC_f7Pqomw?e=lRuNdH",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Fifth Progress Report",
"@file": "1949-01--Fifth Progress Report.pdf",
"@file": "1949-01--Fifth_Progress_Report.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grV3blg-YSnk_iiC8g?e=qEGh4H",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Sixth Progress Report",
"@file": "1951-09--Sixth Progress Report.pdf",
"@file": "1951-09--Sixth_Progress_Report.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grYB9MQXaD7G_V4hog?e=gonvvb",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
"@tags": "ecp"
},
{
"@title": "Final Progress Report",
"@file": "1954-01--Final Progress Report.pdf",
"@file": "1954-01--Final_Progress_Report.pdf",
"@link": "https://1drv.ms/b/s!ArcO_mFRe1Z9grhtAsdmjpJBCaWyew?e=jf7BTU",
"@cover": ".jpg",
"@source": "https://www.ias.edu/electronic-computer-project",
Expand Down Expand Up @@ -1568,7 +1559,11 @@
"pcjs": {
"@title": "PCjs",
"@instances": {
"": {
"library": {
"@title": "Library",
"@permalink": "/documents/"
},
"personal": {
"@title": "Document Archive",
"@permalink": "/documents/pcjs/"
},
Expand Down
Loading

0 comments on commit 64d830c

Please sign in to comment.