GithubHelp home page GithubHelp logo

nodejitsu / docs Goto Github PK

View Code? Open in Web Editor NEW
194.0 194.0 85.0 2.58 MB

Community powered rocket fuel for node.js

Home Page: http://docs.nodejitsu.com

License: Other

JavaScript 64.67% Ruby 0.11% CSS 13.63% HTML 21.59%

docs's People

Contributors

adammw avatar avianflu avatar blakmatrix avatar booyaa avatar coderarity avatar deanlandolt avatar dpatou avatar edef1c avatar hamtie avatar hatchan avatar ifraixedes avatar indexzero avatar jcrugzz avatar jfhbrook avatar julianduque avatar keriwarr avatar learningjs avatar marak avatar marcooliveira avatar max-giro avatar mmalecki avatar pksunkara avatar polotek avatar saadiq avatar slugbyte avatar staeff avatar staxmanade avatar tdurk93 avatar thejh avatar vanuan 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  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  avatar  avatar  avatar

docs's Issues

Required Markdown formats & Highlighting

We have been having some problems with the markdown and syntax highlighting. So, I would like to create a new issue where we will be listing everything we need for markdown parsing and syntax highlighting so that we can modify the existing modules if needed.

Markdown Formats

  • Normal markdown
  • Code blocks with

    ```language-name
    // code in here
    ```

Highlight Syntaxes

  • Javascript
  • Ruby
  • Node REPL

Github flavoured markdown isn't supporting Code blocks.
Highlight.js have many bugs.

Alternate option for Highlight.js

  • ometa-highlighter
  • koala (Abandoned)
  • pygments (Uses pygmentize and is asynchronous)

Some links on main page get wrapped by anchor tags twice

Example:

<p>Browse /articles/ folder or <a href="http://docs.nodejitsu.com"><a href="http://docs.nodejitsu.com">http://docs.nodejitsu.com</a></a></p>

Not all the links are doing this though, even from the same markdown-parsed source. Maybe it's a bug in the markdown parser?

Create view for directory listings

Right now, if you hit a directory without an index.html file, it will use http-server's autoIndex option. This is fine for now, but we should replace this view with a generated listing of the articles.

<docs> Is that "What is require?" wrong?

I've tested the post "What is require?" and when I'm running it's function 'say' I receive the following error:

example.say()
ReferenceError: message is not defined

Do you know what I did wrong? I'm not understanding it...

Left-menu animation flickering

Currently the sub-menu "drawer" pops out each time you mouse over an element. The animation is very nice, but once the drawer is open, if a user moves to the next top level menu item, the sub-menu text should update (i.e. the animation should not fire again)

Repro

  1. Mouse over "Command Line"
  2. Let drawer slide out
  3. Move mouse to "Child Processes"

Expected: Drawer slide-out animation does fire
Actual: Drawer slide-out animation fires (for a second time).

Trying to select text in articles causes left-side menu to pop out

Being somewhat new to node.js, naturally I wanted to copy code snippets from the articles on the site. However, once the left-side pop-out menu was added, copying the code snippets became very difficult. As soon as the cursor reaches the first letter on a line, the menu pops out. This only happens on lines that are next to menu items. For example, if a code snippet is below the menu, the described behavior does not occur. I verified this behavior both on Chrome and Firefox 6 on Mac. Love this site though. It already helped me spruce up a couple scripts where I was doing some things incorrectly.

Doctypes get stripped by jsdom/weld process

Themes have the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  ...

but the results look like:

<html>
  <head>

Perhaps this is because the DOM doesn't need doctypes.

This doesn't seem to affect the rendering of our pages, but it would be nice for the purposes of html validation and the like.

[nodedocs.css - personal changes]

I made some simple changes to nodedocs.css in my fork . Perhaps it is worth sharing a couple.

Basically I changed the header, toc > ul, breadcrumbs position to fixed and the header, breadcrumb, breadcrumbs opacity.

header {
opacity: 0.95; /* modfied /
color: #eee;
font-family: 'typewriter';
width: 100%;
position: fixed; /
modfied */
top: 0px;
height: 50px;
background-color: #333;
box-shadow: -2px 0px 5px #444;
z-index: 3;
}

toc > ul {

text-transform: capitalize;
background-color: #fff;
padding-top: 20px;
position: fixed; /* modfied */
left: 0px;
min-height: 1000px;
top: 50px;
width: 190px;
box-shadow: 3px -10px 5px #ccc;
webkit-box-shadow: 3px -10px 5px #ccc;
z-index: 2;
}

.breadcrumb {
padding-right: 20px;
font-weight: bold;
font-size: 14px;
background: transparent url('../img/crumbtrail.png') no-repeat scroll center right;
margin-right: 10px;
opacity: 0.2; /* modfied */
}

.breadcrumbs {
position: fixed; /* modfied /
right: -5px;
top: 60px;
padding: 6px;
background-color: #fff;
opacity:0.8; /
modfied */
}

/* included */
.breadcrumbs a:hover {
color: black;
opacity: 1;
}

Wireframes for core UI

Hopefully we can start to flesh this out as a group tomorrow with more of that same exercise. The team will work with @NlCO to draft these to pass off to our new designer.

::undefined page title

http://docs.nodejitsu.com/

On each "non-article" page you get "::undefined" as a title.

I've cloned the repo, generated the docs and started the server.

2 situations:

  1. visited localhost:8080/ and everything was perfect (clicking on a category opened a sliding submenu)
  2. visited localhost:8080/article and all "category" pages were "::undefined" and also the link "Edit this article" was broken

So I suspect you are routing http://docs.nodejitsu.com/ from localip:port/articles instead of localip:port .. ?

Expose RSS Feed

It would be nice to have an RSS link in the document with a sequential RSS feed of items added to the site.

Unwritten Proposed Articles/Topics

This is a list of proposed topics and articles that haven't been written (about) yet. If you would like to contribute fresh content, feel free to choose one of these articles and flesh it out.

Getting Started

  • What is node.js?

JavaScript Conventions

  • What is jslint/jshint?
  • What is undefined vs null?
  • EMCA5 functions

Node Conventions

  • How is the typical application structure? (like bin/, test/, lib/, README as well as github+npm published)
  • What are middlewares?
  • How can you do inheritance in node.js?
  • What is the event loop?

Errors

  • What does Error X mean? (This should be a table of errors and explanations.)

Fundamentals - Intermediate

  • How to use Regex in JS (outlined)
  • How to hash info in node.js?
  • Testing / How to use the assert module
  • How to do file uploads?
  • How do i deamonize my node app? / How to keep my node app running? (forever)
  • How to use fs.watchFile? (perhaps a lead into the http://github.com/mikeal/watch)
  • Databases
    • How to use Databases in Node.js
    • How to interface with:
      • sql (various flavors)
      • couch
      • mongo
      • redis
      • riak
  • Real-time Webapp
    • What are websockets? (socket.io/dnode)
  • Data Formats
    • How to interact with json?
    • How to interact with xml?
    • How to interact with yaml?
    • How to interact with csv?

Fundamentals - Advanced

  • How to use the DNS module?
  • How to use the VM module (And Why It's Better Than Eval)
  • How to use the tty module

Node Must-Have Modules

  • What is socket.io?
  • What is async? (or how can I write better async programs?)
  • What is dnode?
  • What is connect/express?
  • What is underscore?
  • What is coffeescript?

The Node.js Community

  • What is the "community"?
  • Using git and Github
  • The Node.js Mailing list
  • The IRC and you
  • search.npmjs.org
  • Being a good member of the community
  • Getting help on a project
  • Contributing back to a project

Consistent capitalization in names and titles

Capitalization in urls, titles and proper nouns should be consistent throughout the docs.

Some guidelines from pull request #44 :

  • "How To Create a HTTP Request": Capitalized.
  • "How To Use npm": Lowercased. In my opinion, this should even override title capitalization rules.
  • /articles/http/clients/how-to-create-a-http-request: Lowercased.

Improve breadcrumb section of articles

The styling for the breadcrumbs could be improved. It currently looks like this:

It would be nice if this navigation element was a bit more clearly defined.

Highlight Encoding Problems

I don't know if it's the Markdown module or the template module but there are pages with double encoding (like /advanced/buffers/how-to-use-buffers). I see &gt; all over the place.

bad link to error conventions

In this page:

docs/pages/articles/errors/what-is-the-error-object/content.md

There is a link to "article on error conventions" that leads nowhere.

Can't generate: ENOENT pages/../page.json

I can't generate the docs, using

node bin/docs generate

I get:

GENERATING YOUR FILES
ready to generate docs...
Error: ENOENT, no such file or directory 'pages/../page.json'
    at Object.openSync (fs.js:230:18)
    at Object.readFileSync (fs.js:120:15)
    at sorter (/home/hector/nodejitsu/docs/lib/toc.js:91:16)
    at Array.map (native)
    at Object.sort (/home/hector/nodejitsu/docs/lib/toc.js:67:14)
    at /home/hector/nodejitsu/docs/lib/toc.js:48:15
    at Object.load (/home/hector/nodejitsu/docs/lib/generators/toc.js:21:10)
    at /home/hector/nodejitsu/docs/lib/docs.js:80:47
    at Array.forEach (native)
    at /home/hector/nodejitsu/docs/lib/docs.js:75:24

node v0.6.14
npm 1.1.15

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.