GithubHelp home page GithubHelp logo

hhy5277 / notepages Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fivesixty/notepages

0.0 1.0 0.0 2.13 MB

Markdown/LaTeX editable pages

Home Page: http://notepag.es

License: MIT License

JavaScript 96.79% CSS 1.85% HTML 1.36%

notepages's Introduction

Notepages

This is the source code behind notepag.es, a page site designed to allow quick, technical documents to be written online, without access to a LaTeX distribution or editor such as LyX. The main formatting of the documents is done in Markdown, and maths can be embedded using LaTeX format.

This repository contains the development version, which is available at dev.notepag.es and runs on the same database. The development version is deployed to live when it has been shown sufficiently stable.

Dependencies

The Notepages server is built upon Node.js/MongoDB, and uses the Express and Mongoose libraries. Both libraries are available through npm. Bundled libraries are quickdiff (created for notepages), and mdext (a showdown fork).

npm install express mongoose jade sass underscore redis

The client editor uses the Ace editor by Mozilla/Ajax.org with a custom MarkdownMode. Some icons used are from the Retina Display Icon Set. Editor icons are from the Fugue set, Copyright © Yusuke Kamiyamane.

To clone the repo and all its submodules:

git clone --recursive https://github.com/fivesixty/notepages.git

The database configuration is trivial and at the top of the server.js file. Running node server.js will start the server listening on port 8080 or 8888 depending on what I pushed last.

CDN Content

Notepages serves the MathJax, Google Font API, and jQuery through their respective CDNs.

Browser Support

Reading and editing has been tested across all modern browsers (IE9, Safari 5, Chrome, Firefox 3.6/4). IE6 is not supported. IE7/8 should be able to read, though will not have code highlighting, and the edit experience will be haphazard. Chrome Frame is set to be enabled for users of IE8 or lower, but does not currently prompt for install.

Mobile support

A mobile version is served to detected browsers, using jQuery Mobile Alpha 3. It has been tested on iPad/iPhone browsers. Reading experience is good on the iPad, somewhat constrained on the iPhone due to width. Editing is buggy due to alpha status of jQuery mobile., but functional.

Mobile support is currently not supported in development, and will be moving to a read-only state pending finding suitable input arrangements.

Printing

A print stylesheet is served which formats the document in a print friendly manner. Exporting of pages is not self-supported, but Print-to-PDF functionality of most browsers works as expected.

Syntax

Notepag.es supports Markdown, but does not allow arbitrary HTML. HTML markup can still be used, but only insofar as elements that can naturally be created with markdown syntax.

Some extensions to markdown syntax have been provided, at this time: tables and figures. Tables are a port of the PHP Markdown Extra syntax. Figures allow an optional > or < after the ! when defining an image. < indicates a left floated figure, and > indicates right floated. The caption used will be the title of the image, which can be defined in two ways (standard markdown):

!>[right alt](http://image.url "right caption")
!<[left alt][lefturl]

  [lefturl]: http://image.url "left caption"

notepages's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.