Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: catseye/Chrysoberyl
base: 6d71ada6c6
...
head fork: catseye/Chrysoberyl
compare: 36575a171e
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
View
10 data/exhibits.yaml
@@ -23,6 +23,16 @@
only two kilobytes of code! These days you can't even sneeze in less
than a megabyte.
+'Super Wumpus Land (HTML5)':
+ type: Online Installation
+ exhibit: Digital Art Exhibit
+ interactive: true
+ animated: true
+ medium: HTML5
+ description: |
+ [[Super Wumpus Land]] playable online in an HTML5 canvas simulating a
+ text terminal.
+
### Esolangs ###
'yoob (Applet)':
View
16 data/news.yaml
@@ -1,9 +1,25 @@
+"Super Wumpus Land now playable online":
+ type: Article
+ article-type: announcement
+ publication-date: Sun, 24 Mar 2013 12:28:33 GMT
+ blurb: |
+ [[Super Wumpus Land]] is now [[Super Wumpus Land (HTML5)|playable online]].
+ description: |
+ [[Super Wumpus Land]], our silly "extended dance mix" version of
+ [[Hunt the Wumpus]], has been converted to [[Javascript]], and is now
+ playable online here: [[Super Wumpus Land (HTML5)]].
+
+ This new implementation uses modules from [[yoob.js]] to simulate
+ a text-based terminal on an [[HTML5]] `<canvas>` element.
+
"Oops, I just turned Chrysoberyl into a blogging platform":
type: Article
article-type: announcement
authors:
- Chris Pressey
publication-date: Wed, 20 Mar 2013 14:59:21 GMT
+ blurb: |
+ Oops, I just turned [[Chrysoberyl]] into a blogging platform.
description: |
I'm not much of a blogger. I've considered starting a blog a few times,
but the thing is, most blogs are either about trends or opinions
View
5 data/original-games.yaml
@@ -172,6 +172,8 @@ Super Wumpus Land:
development-stage: mature
description: |
Super Wumpus Land is an "extended dance mix" version of [[Hunt the Wumpus]].
+ online-implementations:
+ - 'Super Wumpus Land (HTML5)'
swl:
type: Implementation
@@ -195,6 +197,9 @@ Super Wumpus Land distribution:
- version: "1.0"
revision: "2007.1216"
url: http://catseye.tc/distfiles/swl-2007.1216.zip
+ - version: "1.1"
+ revision: "2013.0324"
+ url: http://catseye.tc/distfiles/super-wumpus-land-1.1-2013.0324.zip
Zzrk:
View
12 data/original-platforms.yaml
@@ -82,6 +82,7 @@ tc.catseye.yoob:
- yoob
implementation-type: framework
in-distribution: yoob distribution
+ generally-recommended: true
license: Public Domain
host-language: Java
@@ -98,3 +99,14 @@ yoob distribution:
- version: "0.3"
revision: "2011.0920"
url: http://catseye.tc/distfiles/yoob-0.3-2011.0920.zip
+
+yoob.js:
+ type: Implementation
+ implementation-of:
+ - yoob
+ implementation-type: framework
+ license: Public Domain
+ host-language: Javascript
+ description: |
+ yoob.js is not strictly an implementation of yoob. In fact, it's
+ a different framework. But for now, you can think of it that way.
View
12 src/chrysoberyl/renderer.py
@@ -376,6 +376,18 @@ def articles():
key=lambda x: self.data[x]['publication-date']))
@expose
+ def latest_news_item():
+ latest = None
+ latest_date = None
+ for thing in self.data:
+ node = self.data[thing]
+ if node['type'] == 'Article':
+ if latest_date is None or node['publication-date'] > latest_date:
+ latest_date = node['publication-date']
+ latest = node
+ return latest
+
+ @expose
def strftime(date, fmt):
return date.strftime(fmt)
View
5 src/chrysoberyl/transformer.py
@@ -75,6 +75,11 @@ def convert_chrysoberyl_data(data):
node.update(new_fields)
for field in ('summary', 'description', 'commentary'):
node[field + '_html'] = markdown_field(data, node, field)
+ node['blurb_html'] = markdown_field(data, node, 'blurb', prefix='node/')
+ if node['blurb_html'] is not None:
+ match = re.match(r'^\s*\<p\>(.*?)\<\/p\>\s*$', node['blurb_html'])
+ if match:
+ node['blurb_html'] = match.group(1)
for sample_key in ('sample', 'sample_input', 'sample_output'):
if sample_key in node:
sample_md = '\n'.join(
View
2  templates/Chrysoberyl.html
@@ -21,7 +21,7 @@
<h2>Metanodes</h2>
<ul>
{%- for thing in data.keys()|sort -%}
- {%- if data[thing].type == 'Metanode' -%}
+ {%- if data[thing].type == 'Metanode' and not data[thing].hidden -%}
<li>
{{ link(thing) }}
</li>

No commit comments for this range

Something went wrong with that request. Please try again.