forked from alexrandaccio/plurality.net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request alexrandaccio#5 from alexrandaccio/march-update
March update
- Loading branch information
Showing
14 changed files
with
136 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const fetch = require("node-fetch"); | ||
const read_url = async (url) => { | ||
return fetch(url = url) | ||
.then(res => { | ||
if (res.status != 200){ | ||
console.log(res); | ||
const return_message = `Content retrieval error ${res.status} ${res.statusText}` | ||
return return_message; | ||
} else { | ||
return res.text() | ||
} | ||
}) | ||
.then(text => { | ||
return text; | ||
}) | ||
.catch(err => { | ||
console.log("retrieval error catch") | ||
const return_message = `Configured content URL is not reacheable at ${url}` | ||
return return_message; | ||
}) | ||
} | ||
|
||
module.exports = async function() { | ||
let return_content = {} | ||
|
||
urls = { | ||
return_url_02: "https://raw.githubusercontent.com/pluralitybook/plurality/main/introduction.md", | ||
return_url_03: "https://raw.githubusercontent.com/pluralitybook/plurality/main/pluralworld.md" | ||
} | ||
|
||
for (let url_item in urls) { | ||
console.log(url_item, urls[url_item]); | ||
return_content[url_item] = await read_url(urls[url_item]) | ||
} | ||
return return_content; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "plurality.net", | ||
"name": "Plurality: Technology for Collaborative Diversity and Democracy", | ||
"description": "Plurality: Technology for Collaborative Diversity and Democracy", | ||
"authors": ["Audrey Tang", "Glen Weyl"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: 'Plurality: Introduction' | ||
githubLink: 'https://github.com/pluralitybook/plurality/blob/main/introduction.md' | ||
dateStartedString: { day: '20', month: '03', year: '2023' } | ||
translations: | ||
{ | ||
plurality: 'Chapter II', | ||
subtitle: 'Introduction', | ||
authorsLead: 'By Audrey Tang, E. Glen Weyl and the Plurality Community', | ||
translatorsLead: 'Translated by:', | ||
return: 'return', | ||
chapters: 'chapters', | ||
} | ||
language: { en: 'english', iso6392B: 'eng', locale: 'II Introduction' } | ||
chapterid: { chapterid_subid: 'II'} | ||
translators: [] | ||
--- | ||
{{github.return_url_02}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: 'Plurality: Living in a Plural World' | ||
githubLink: 'https://github.com/pluralitybook/plurality/blob/main/pluralworld.md' | ||
dateStartedString: { day: '20', month: '03', year: '2023' } | ||
translations: | ||
{ | ||
plurality: 'Chapter III', | ||
subtitle: 'Living in a Prural World', | ||
authorsLead: 'By Audrey Tang, E. Glen Weyl and the Plurality Community', | ||
translatorsLead: 'Translated by:', | ||
return: 'return', | ||
chapters: 'chapters', | ||
} | ||
language: { en: 'english', iso6392B: 'eng', locale: 'III Living in a Plural World' } | ||
chapterid: { chapterid_subid: 'III'} | ||
translators: [] | ||
--- | ||
{{github.return_url_03}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"layout": "version", | ||
"permalink": "/v/chapters/{{chapterid.chapterid_subid | slug }}/{{ language.iso6392B | slug }}/", | ||
"tags": "chapterversions" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters