-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate netlify-cms-www site into this repo (#860)
* Add frontmatter to docs files (prep to move) * Move docs into position for website migration * Migrate website from netlify-cms-www Some modifications, including most of the changes in netlify/netlify-cms-www#58 (previously reverted). Also updated the readme and added hugo-bin for quicker onboarding of new docs contributors. * Remove netlify.toml This allows separate build commands for cms-demo and netlifycms.org. * Remove website/netlify.toml May re-add later, but it's not doing anything for now. * Remove unused content file
- Loading branch information
1 parent
8e529ee
commit 155f40e
Showing
85 changed files
with
9,616 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"plugins": [ | ||
"syntax-object-rest-spread", | ||
"transform-object-rest-spread" | ||
] | ||
} |
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 @@ | ||
node |
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,19 @@ | ||
# Netlify CMS Website & Docs | ||
|
||
This directory builds netlifycms.org. If you'd like to propose changes to the site or docs, you'll find the source files in here. | ||
|
||
## Local development | ||
|
||
The site is built with [Hugo](https://gohugo.io/), managed as an npm dependency via [hugo-bin](https://www.npmjs.com/package/hugo-bin). | ||
|
||
To run the site locally, you'll need to have [Node](https://nodejs.org) and [Yarn](https://yarnpkg.com/en/) installed on your computer. | ||
|
||
From your terminal window, `cd` into the `website` directory of the repo, and run | ||
|
||
```bash | ||
yarn | ||
yarn start | ||
``` | ||
|
||
Then visit http://localhost:3000/ - BrowserSync will automatically reload CSS or | ||
refresh the page when stylesheets or content changes. |
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,45 @@ | ||
// if you change these you must restart the server | ||
|
||
module.exports = { | ||
|
||
// colors | ||
lightestGrey: '#E6E6E6', | ||
lighterGrey: '#F7F8F8', | ||
lightGrey: '#F6F6F6', | ||
grey: '#313D3E', | ||
darkGrey: '#2F3132', | ||
darkerGrey: '#1C1E1E', | ||
lightGreen: '#97bf2f', | ||
green: '#C9FA4B', | ||
darkGreen: '#7CA511', | ||
|
||
// typography | ||
thin: 100, | ||
light: 300, | ||
regular: 400, | ||
semibold: 500, | ||
bold: 700, | ||
black: 900, | ||
|
||
// fonts | ||
roboto: "'Roboto', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif", | ||
|
||
// padding | ||
micro: '8px', | ||
tiny: '16px', | ||
small: '24px', | ||
medium: '40px', | ||
large: '64px', | ||
xl: '104px', | ||
xxl: '168px', | ||
|
||
// border radius | ||
borderRadius: '4px', | ||
largeBorderRadius: '10px', | ||
|
||
// responsive breakpoints | ||
mobile: '480px', | ||
tablet: '768px', | ||
desktop: '960px', | ||
display: '1200px' | ||
} |
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,94 @@ | ||
import gulp from "gulp"; | ||
import cp from "child_process"; | ||
import hugoBin from "hugo-bin" | ||
import gutil from "gulp-util"; | ||
import postcss from "gulp-postcss"; | ||
import cssImport from "postcss-import"; | ||
import neatgrid from "postcss-neat"; | ||
import nestedcss from "postcss-nested"; | ||
import colorfunctions from "postcss-colour-functions"; | ||
import hdBackgrounds from "postcss-at2x"; | ||
import cssvars from "postcss-simple-vars-async"; | ||
import cssextend from "postcss-simple-extend"; | ||
import styleVariables from "./config/variables"; | ||
import BrowserSync from "browser-sync"; | ||
import webpack from "webpack"; | ||
import webpackConfig from "./webpack.conf"; | ||
|
||
const browserSync = BrowserSync.create(); | ||
const defaultArgs = ["-d", "../dist", "-s", "site", "-v"]; | ||
|
||
gulp.task("hugo", (cb) => buildSite(cb)); | ||
gulp.task("hugo-preview", (cb) => buildSite(cb, ["--buildDrafts", "--buildFuture"])); | ||
|
||
gulp.task("build", ["css", "js", "fonts", "images", "hugo"]); | ||
gulp.task("build-preview", ["css", "js", "fonts", "images", "hugo-preview"]); | ||
|
||
gulp.task("css", () => ( | ||
gulp.src("./src/css/**/*.css") | ||
.pipe(postcss([ | ||
cssImport({from: "./src/css/main.css"}), | ||
neatgrid(), | ||
nestedcss(), | ||
colorfunctions(), | ||
hdBackgrounds(), | ||
cssextend(), | ||
cssvars({variables: styleVariables})])) | ||
.pipe(gulp.dest("./dist/css")) | ||
.pipe(browserSync.stream()) | ||
)); | ||
|
||
gulp.task("js", (cb) => { | ||
const myConfig = Object.assign({}, webpackConfig); | ||
|
||
webpack(myConfig, (err, stats) => { | ||
if (err) throw new gutil.PluginError("webpack", err); | ||
gutil.log("[webpack]", stats.toString({ | ||
colors: true, | ||
progress: true | ||
})); | ||
browserSync.reload(); | ||
cb(); | ||
}); | ||
}); | ||
|
||
gulp.task("fonts", () => ( | ||
gulp.src("./src/fonts/**/*") | ||
.pipe(gulp.dest("./dist/fonts")) | ||
.pipe(browserSync.stream()) | ||
)); | ||
|
||
gulp.task("images", () => ( | ||
gulp.src("./src/img/**/*") | ||
.pipe(gulp.dest("./dist/img")) | ||
.pipe(browserSync.stream()) | ||
)); | ||
|
||
gulp.task("server", ["hugo", "css", "js", "fonts", "images"], () => { | ||
browserSync.init({ | ||
server: { | ||
baseDir: "./dist" | ||
}, | ||
notify: false | ||
}); | ||
gulp.watch("./src/js/**/*.js", ["js"]); | ||
gulp.watch("./src/css/**/*.css", ["css"]); | ||
gulp.watch("./src/img/**/*", ["images"]); | ||
gulp.watch("./src/fonts/**/*", ["fonts"]); | ||
gulp.watch("./site/**/*", ["hugo"]); | ||
}); | ||
|
||
function buildSite(cb, options) { | ||
const args = options ? defaultArgs.concat(options) : defaultArgs; | ||
|
||
return cp.spawn(hugoBin, args, {stdio: "inherit"}).on("close", (code) => { | ||
if (code === 0) { | ||
browserSync.reload(); | ||
cb(); | ||
} else { | ||
browserSync.notify("Hugo build failed :("); | ||
cb("Hugo build failed"); | ||
} | ||
}); | ||
} | ||
|
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,53 @@ | ||
{ | ||
"name": "victor-hugo", | ||
"version": "1.0.0", | ||
"description": "Victor Hugo is a Hugo boilerplate for creating truly epic websites!", | ||
"main": "index.js", | ||
"scripts": { | ||
"hugo": "gulp hugo", | ||
"webpack": "gulp webpack", | ||
"build": "gulp build", | ||
"build-preview": "gulp build-preview", | ||
"start": "gulp server", | ||
"lint": "eslint src" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"autoprefixer": "^6.3.7", | ||
"babel-eslint": "^6.1.2", | ||
"babel-loader": "^6.2.4", | ||
"babel-plugin-syntax-object-rest-spread": "^6.13.0", | ||
"babel-plugin-transform-class-properties": "^6.10.2", | ||
"babel-plugin-transform-object-assign": "^6.8.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.8.0", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-register": "^6.11.6", | ||
"browser-sync": "^2.13.0", | ||
"css-loader": "^0.23.1", | ||
"eslint": "^3.1.1", | ||
"eslint-plugin-import": "^1.11.1", | ||
"exports-loader": "^0.6.3", | ||
"file-loader": "^0.9.0", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-postcss": "^6.1.1", | ||
"gulp-util": "^3.0.7", | ||
"hugo-bin": "^0.18.0", | ||
"imports-loader": "^0.6.5", | ||
"postcss-at2x": "^2.0.0", | ||
"postcss-colour-functions": "^1.5.1", | ||
"postcss-cssnext": "^2.7.0", | ||
"postcss-import": "^8.1.2", | ||
"postcss-loader": "^0.9.1", | ||
"postcss-neat": "^2.5.2", | ||
"postcss-nested": "^1.0.0", | ||
"postcss-simple-extend": "^1.0.0", | ||
"postcss-simple-vars-async": "^1.2.1", | ||
"url-loader": "^0.5.7", | ||
"webpack": "^1.13.1", | ||
"whatwg-fetch": "^1.0.0", | ||
"yamljs": "^0.2.8" | ||
}, | ||
"devDependencies": {} | ||
} |
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,6 @@ | ||
baseurl: "/" | ||
languageCode: "en-us" | ||
title: "Netlify CMS | Open-Source Content Management System" | ||
disable404: true | ||
pluralizeListTitles: false | ||
metaDataFormat: "yaml" |
Empty file.
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
5 changes: 5 additions & 0 deletions
5
docs/authentication-backends.md → ...e/content/docs/authentication-backends.md
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
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
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
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
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
--- | ||
title: Examples | ||
position: 110 | ||
--- | ||
|
||
# Examples | ||
|
||
Do you have a great example? Submit a pull request to this page. | ||
|
||
Name | Tools | Type | Example | More info | | ||
--- | --- | --- | --- | --- | ||
This Developing Journey | middleman | blog | [briandouglas.me](https://briandouglas.me) | [blog post](https://deploy-preview-496--www.netlify.com/blog/2017/04/18/blog-with-middleman-and-the-netlifycms/) | ||
JAMstack Recipes | Hugo, Azure | demo | [jamstack-cms.netlify.com](http://jamstack-cms.netlify.com) | [blog post](http://conductofcode.io/post/managing-content-for-a-jamstack-site-with-netlify-cms/) | ||
JAMstack Recipes | Hugo, Azure | demo | [jamstack-cms.netlify.com](http://jamstack-cms.netlify.com) | [blog post](http://conductofcode.io/post/managing-content-for-a-jamstack-site-with-netlify-cms/) |
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
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
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
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
Oops, something went wrong.