Skip to content

Commit

Permalink
Fix some build script issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanreese committed Sep 16, 2024
1 parent 761214d commit 08bfb33
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
17 changes: 11 additions & 6 deletions build/build.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ processInline = (page, line)->
res += chars.shift()
if res.endsWith(p) # when res ends with p
return res.slice 0, -p.length # strip p from the end, and return res
res # we didn't find a match for p, so just return res
# we didn't find a match for p, so restore chars and return null
chars = Array.from(res).concat chars
null

while chars.length > 0

Expand All @@ -229,10 +231,12 @@ processInline = (page, line)->
# out += "<#{str}>"

else if char is "["
str = consumeUntil ")"
[text, url] = str.split "]("
url = "https://#{url}" unless url.toLowerCase().startsWith "http"
out += "<a href=\"#{url}\">#{text}</a>"
if str = consumeUntil ")"
[text, url] = str.split "]("
url = "https://#{url}" unless url.toLowerCase().startsWith "http"
out += "<a href=\"#{url}\">#{text}</a>"
else
out += "["

else if char is "`"
str = consumeUntil "`"
Expand Down Expand Up @@ -351,7 +355,8 @@ for pageName, page of pages
aside = "<aside>\n"

if page.data.contributors?
lis = page.data.contributors.split(",").map (c)-> li c.trim()
console.log page.data.contributors
lis = page.data.contributors.split(",").map((c)-> li c.trim()).join ""
aside += indent + " <section><h1>Contributors</h1><ul>#{lis}</ul></section>\n"

if backlinks.length
Expand Down
5 changes: 2 additions & 3 deletions pages/collaboration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Collaboration in the community
title: Collaboration in the Community
contributors: Kartik Agaram, Ivan Reese
---

Expand All @@ -13,8 +13,7 @@ Let's collect some nice examples of the sorts of collaboration taking place.

[This wiki](/), naturally, is a collaborative project run by members of the community. There are also a few other-meta projects that seek to foster collaboration.

### [Project Comparison] Google Sheet
This is a spreadsheet listing Future of Coding projects in and around the community. It’s not an exhaustive listing, but it does provide an interesting starting point to see who here is working on what, plus a few projects elsewhere that might be of interest to our members. If you’re looking for a project to contribute to, this is one place to explore your options. If you are working on a project, you may edit the spreadsheet to add your project (please stick to the existing format).
The [Project Comparison](https://docs.google.com/spreadsheets/d/12sTu7RT-s_QlAupY1v-3DfI1Mm9NEX5YMWWTDAKHLfc/edit) Google Sheet catalogs Future of Coding projects in and around the community. It's not an exhaustive listing, but it does provide an interesting starting point to see who here is working on what, plus a few projects elsewhere that might be of interest to our members. If you’re looking for a project to contribute to, this is one place to explore your options. If you are working on a project, you may edit the spreadsheet to add your project (please stick to the existing format).

# Discussions

Expand Down
6 changes: 3 additions & 3 deletions pages/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ contributors: Kartik Agaram

This list currently skews heavily non-commercial, but feel free to edit to your taste and we'll figure it out. I'm aiming for projects you can actually chat with the creators about on the FoC forum. In alphabetical order for lack of a better idea.

**[0D](https://github.com/guitarvydas/0D):** Component-based software using drawings as source code
**[0D](https://github.com/guitarvydas/0D):** Component-based software using drawings as source code

**[Blawx](https://github.com/Lexpedite/blawx):** A block-based programming language for drafting rules and laws

Expand All @@ -29,7 +29,7 @@ This list currently skews heavily non-commercial, but feel free to edit to your

**[Subtext](https://www.subtext-lang.org):** Experiments in radically simplifying programming

**[Tom's Visual Probabilistic Programming Language](http://alltom.com/pages/ppl-lab-notebook)**
**[Tom's Visual Probabilistic Programming Language](http://alltom.com/pages/ppl-lab-notebook)**

## Less active projects/creators

Expand All @@ -47,4 +47,4 @@ This list currently skews heavily non-commercial, but feel free to edit to your

## Related

This page was seeded from [Duncan Cragg's project comparison spreadsheet](https://docs.google.com/spreadsheets/d/12sTu7RT-s_QlAupY1v-3DfI1Mm9NEX5YMWWTDAKHLfc/edit?pli=1&gid=0#gid=0)
This page was seeded from [Duncan Cragg's project comparison spreadsheet](https://docs.google.com/spreadsheets/d/12sTu7RT-s_QlAupY1v-3DfI1Mm9NEX5YMWWTDAKHLfc/edit)

0 comments on commit 08bfb33

Please sign in to comment.