forked from jacques/docs.npmjs.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5a27c80
Showing
7 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# [docs.npmjs.com](https://docs.npmjs.com) | ||
|
||
## Development | ||
|
||
To run this thing locally: | ||
|
||
``` | ||
npm install | ||
npm start | ||
``` | ||
|
||
Open [localhost:9000](https://localhost:9000) | ||
|
||
## Deployment | ||
|
||
```sh | ||
export NODE_ENV=production | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
doctype html | ||
html | ||
head | ||
title npm docs | ||
|
||
meta(name="viewport" content="width=device-width, initial-scale=1") | ||
meta(name="description" content="The place where all things npm will one day be documented") | ||
|
||
link(href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700|Source+Code+Pro:400,600,700' rel='stylesheet' type='text/css') | ||
link(rel='stylesheet', type='text/css', href='/styles/index.css') | ||
|
||
block head | ||
|
||
body | ||
|
||
header | ||
section | ||
h1 | ||
img(src="/images/npm-logo.png") | ||
= "Docs" | ||
|
||
section | ||
!= yield | ||
|
||
footer |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# How to Do Things | ||
|
||
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium | ||
doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore | ||
veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim | ||
ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia | ||
consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque | ||
porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, | ||
adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et | ||
dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis | ||
nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid | ||
ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea | ||
voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem | ||
eum fugiat quo voluptas nulla pariatur? | ||
|
||
## A Secondary Heading | ||
|
||
Eaque ipsa quae ab illo inventore | ||
veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim | ||
ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia | ||
consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. | ||
|
||
- foo is a thing | ||
- bar is another | ||
- baz with a [link](http://example.com). | ||
|
||
|
||
## Here comes some code | ||
|
||
```js | ||
var doIt = function(what) { | ||
return what.toUpperCase(); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "docs.npmjs.com", | ||
"version": "1.0.0", | ||
"description": "The place where all things npm will one day be documented", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "harp server" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/npm/docs.npmjs.com" | ||
}, | ||
"keywords": [ | ||
"npm", | ||
"docs", | ||
"documentation" | ||
], | ||
"author": "Zeke Sikelianos <[email protected]> (http://zeke.sikelianos.com/)", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/npm/docs.npmjs.com/issues" | ||
}, | ||
"homepage": "https://github.com/npm/docs.npmjs.com", | ||
"dependencies": { | ||
"harp": "^0.13.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
fonts = 'Source Sans Pro', 'Lucida Grande', sans-serif | ||
codefonts = 'Source Code Pro', 'Courier', sans-serif | ||
|
||
npmred = #cb3837 | ||
|
||
body | ||
font-family fonts | ||
color #333 | ||
margin 0 | ||
padding 0 | ||
|
||
a | ||
color npmred | ||
|
||
header | ||
border-top 10px solid npmred | ||
|
||
h1 | ||
line-height 40px | ||
vertical-align top | ||
font-size 36px | ||
color rgba(black, 1) | ||
img | ||
display inline-block | ||
max-height 50px | ||
margin-right 15px | ||
|
||
section | ||
position relative | ||
margin 0 auto | ||
max-width 600px |