nodejitsu / docs Goto Github PK
View Code? Open in Web Editor NEWCommunity powered rocket fuel for node.js
Home Page: http://docs.nodejitsu.com
License: Other
Community powered rocket fuel for node.js
Home Page: http://docs.nodejitsu.com
License: Other
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.
```language-name
// code in here
```
Github flavoured markdown isn't supporting Code blocks.
Highlight.js have many bugs.
Alternate option for Highlight.js
The articles are not organized consistently. The expected organization is Title -> Subtitle -> Article (as described by marak).
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?
in /theme/article.html
and /generators/article.js
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.
There shouldn't be any coffeescript in the nodejitsu stack.
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...
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
Expected: Drawer slide-out animation does fire
Actual: Drawer slide-out animation fires (for a second time).
We should add chartbeat tracking code to the main layout.
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.
We should add a footnote somewhere. Users are confusing this article with our official docs and are trying to create an https
server on our stack.
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.
Maybe a dup of #18, but it would be really nice if the left nav in http://docs.nodejitsu.com/ were not sorted alpha but rather sorted in the order that a beginner would walk through docs. For example, Getting Started should be at the top.
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;
}
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;
}
This should get assigned to Tyrus after the spec and the wireframes have been created.
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.
nt
nt
also, we should generate /public/all/index.html
with all the articles merged together
nt
There should be no H1s in any of the article.md's. ( #
in Markdown )
The title should be represented by the name
property in the metadata.json
file
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:
So I suspect you are routing http://docs.nodejitsu.com/ from localip:port/articles instead of localip:port .. ?
It would be nice to have an RSS link in the document with a sequential RSS feed of items added to the site.
I do not believe that checking in the generated content is a good idea. I could be wrong. Thoughts?
Article covers how to use native file calls, then suggests using findit instead.
n/t
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.
Capitalization in urls, titles and proper nouns should be consistent throughout the docs.
Some guidelines from pull request #44 :
/articles/http/clients/how-to-create-a-http-request
: Lowercased.I believe the docs "templates" includes some elements, which unfortunately has been deprecated.
Use http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-data-element instead.
nt
We should also then use this value to sort articles when they are generated for views like the table of contents.
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 >
all over the place.
of this article https://github.com/nodejitsu/docs/blob/master/pages/articles/getting-started/control-flow/how-to-write-asynchronous-code/content.md
on the last code example:
for (var i = 0; i < 5; i++) {
(function(i) {
setTimeout(function () {
console.log(i);
}, i);
})(i);
there should be a '}' on the last line
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.
In a few cases, titles are pulled from path information and not from metadata.json.
Should have a marketing/blurb or maybe a roadmap or something. some links back to our services and tools.
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
When on iPad:
`1. The ToC menu can't close.
I thought that the body
event would catch this edge case ( see: https://github.com/nodejitsu/docs/blob/master/theme/js/index.js#L42 ) , but it appears to not be working for iOS.
`2. The background image separating navigation and content is not showing up on iPad Safari, here's a screenshot:
One is in "javascript-conventions" and written by Nico, and the other is in "basic" and written by Marco. My impression is that both articles basically say the same thing.
The folder structure is set up this way, but I don't believe it's happening automatically.
The links in articles that have links to other articles are not working. It is especially obvious on http://docs.nodejitsu.com/articles/getting-started/globals-in-node-js ... click on any of the Read More links.
In http://docs.nodejitsu.com/articles/javascript-conventions/what-are-truthy-and-falsy-values,
The ampersands are displayed as HTML entities:
var myvalue = first && second;
The preview of the contend.md
is correct though.
https://github.com/nodejitsu/docs/edit/master/pages/articles/javascript-conventions/what-are-truthy-and-falsy-values/content.md
Is this a bug of the syntax highlighter? Extra classes are added to the string &
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.