GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hiagatha/perseus: Perseus is Khan Academy's new exercise question editor and renderer.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,767 Commits
1,767 Commits

Folders and files

NameName
Last commit message
Last commit date
fonts
fonts
 
 
hubble @ 2f376e8
hubble @ 2f376e8
 
 
images
images
 
 
jest
jest
 
 
ke @ 85b53ad
ke @ 85b53ad
 
 
kmath @ 92454b1
kmath @ 92454b1
 
 
lib
lib
 
 
node
node
 
 
node_modules
node_modules
 
 
react-components @ 5a6aab4
react-components @ 5a6aab4
 
 
simple-markdown @ 27d1bc0
simple-markdown @ 27d1bc0
 
 
src
src
 
 
stylesheets
stylesheets
 
 
.arcconfig
.arcconfig
 
 
.arclint
.arclint
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.travis.yml
.travis.yml
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.txt
LICENSE.txt
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
article.html
article.html
 
 
difftest.html
difftest.html
 
 
index.html
index.html
 
 
inputting-math.md
inputting-math.md
 
 
ke-deps.js
ke-deps.js
 
 
lint_blacklist.txt
lint_blacklist.txt
 
 
mobile-api.md
mobile-api.md
 
 
package.json
package.json
 
 
perseus.sublime-project
perseus.sublime-project
 
 
test.html
test.html
 
 
testrender.html
testrender.html
 
 
webpack.config.js
webpack.config.js
 
 
webpack.config.node-perseus.js
webpack.config.node-perseus.js
 
 

Repository files navigation

Perseus

Build Status Join the chat at https://gitter.im/Khan/perseus

Perseus is Khan Academy's new exercise question editor and renderer. It allows you to create and display interactive questions.

screenshot of Perseus

Live demo

Our test page isn't much yet, but you can check out a live demo of it here!

Getting Started

To get the dev server running locally, try make server PORT=9000 which will run the local perseus server on localhost:9000. Then visit http://localhost:9000/test.html.

To package perseus for distribution, run make build and to package a debug-friendly build, run make debug.

Both the build and the server make targets will run npm install but you can also run it yourself to install all node dependencies.

Versioning

Perseus uses two types of version numbers: the version of the itemData/content that can be sent to ItemRenderer/Renderer, and the version of the api exposed through the ItemRenderer/Renderer apiOptions prop. These are set in src/version.json.

itemData versioning

Item data versioning has two subtypes of versions: a global itemDataVersion for the itemData/content format sent to ItemRenderer/Renderer, and per-widget version numbers for the options sent to each widget. All of these version numbers exist both in perseus.js and in the itemData saved to the datastore by the Perseus editor.

Each of these versions consists of a major and minor version number. A perseus version can render an itemData version iff its global itemDataVersion and each of its widget versions are greater than or equal to those sent to perseus as itemData. A major version increase will happen when the saving format of this itemData has changed. Perseus clients should not need to care about this distinction, but it is important to Perseus' implementation of backwards-compatibility.

apiOptions versioning

The version of the apiOptions prop sent to ItemRenderer or Renderer is stored on Perseus.apiVersion. A minor version increase indicates an optional additional parameter to this interface. A major version increase indicates a not-backwards-compatible change to this API. A perseus client should rely on a specific major version of perseus, and should be able to use any future minor version increase without changes, but not necessarily previous minor versions. For example, if a client begins using version 1.2, Perseus api versions 1.3 or 1.4 will work transparently, but Perseus api versions 1.0, 1.1, 2.0, or 2.2 will not work.

Contributing

See CONTRIBUTING.md for a walkthrough of how some of the Perseus code works and how to extend it.

License

MIT License

About

Perseus is Khan Academy's new exercise question editor and renderer.

khan.github.io/perseus/

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.