Git Product home page Git Product logo

myword's Introduction

myWord

An easy open source way to create nice-looking web pages for essays.

I have a new writing tool I'm working on and wanted it to be able to create beautiful essay pages like Medium. But Medium doesn't have an API. So I made an essay-viewer that does. ;-)

http://myword.io/

Now, I'm not a great CSS hacker. That's obvious. But all that's needed is a framework to get started. That's the idea.

I'm going to keep iterating. :-)

MyWord Editor

April 2015: There's a new project, MyWord Editor, that picks up where this one left off. It turns the MyWord renderer into a full blog editing system.

Blog post

The Scripting News blog post announcing myword.io, a good place to post a comment.

Updates

v0.48 2/16/15 by DW
  1. The two main sections are both positioned absolute, so the text will always begin at the same vertical place no matter how much descriptive text there is.

  2. There's a transparent dark rectangle around the byline-title-description section, which makes the text jump out a bit more over the picture.

  3. There's a footer section at the bottom, but I haven't done any CSS for it yet, and there's no way to set it via the JSON.

v0.46 2/14/15 by DW -- Happy Valentine's Day!
  1. Added dropshadows to the byline and description.

  2. Added styles to make it look reasonable on a phone.

v0.45 2/13/15 by DW
  1. Made the description fixed height, so the body text always begins at the same vertical position.

  2. Made the body text a little narrower and added to the line-height.

  3. Show the version number in the upper-right corner of the page, in white.

v0.44 2/13/15 by DW

Thanks to an excellent suggestion by Paulo Querido, myword.io now supports Markdown.

Here's a demo page, and the JSON source file is renders.

Here's how it works.

  1. Markdown is off by default, you can turn it on by including "flMarkdown": "true".

  2. Markdown only applies to the subs. The title, description, byline, etc are not processed.

  3. When we generate the Markdown text from the JSON, we add two linefeeds at the end of every line. So every line is effectively a paragraph. Unless it has markup that makes Markdown think it's something else.

  4. The CSS for Markdown needs work. I added one fix for <h4> but a lot more is probably needed to make it look great. Please, if you're good with Markdown, Bootstrap Toolkit (which is part of the environment) and CSS, take a look and see if you can improve.

v0.43 2/13/15 by DW

A bunch of small changes, loose-end fixes.

  1. If there's an error in the JSON, we put up a dialog saying so, along with a suggestion that you use the excellent JSONLINT site to find the error.

  2. If it's been more than a day since an article was posted, instead of saying "By Mary Jones at Wednesday", we say "on Wednesday".

  3. Before using any of the values in the JSON, be sure it exists.

  4. You can change the title font and the body font. See the example JSON file for a clue.

myword's People

Contributors

scripting avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

myword's Issues

just a css quibble

line-height for lists should also be 145%.

.divEssayText ul li {
line-height: 145%;
}
.divEssayText ol li {
line-height: 145%;
}

For nested lists the nesting has to be recreated in the css, I believe.

ul ul li { ...
ul ul ul li { ...

Support YAML

We write faster in YAML format, can you support this format?

the UI seems to freeze after publishing article

After publishing a new or edited article, the MyWordEditor UI is unresponsive and requires a page refresh to get passed it. This is on Safari Version 8.0.5 (10600.5.9), OS X Version 10.10.3 (14D105g).

--update -- I just published a few changes to my article and it didn't happen that time. The only difference in the earlier attempts was that URL to the background image was broken, which I fixed. I'm not sure if that would have anything to do with it.

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.