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 https://github.com/netlify/netlify-cms-www/pull/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
This commit is contained in:
10
website/site/layouts/partials/edit-link.html
Normal file
10
website/site/layouts/partials/edit-link.html
Normal file
@ -0,0 +1,10 @@
|
||||
<a class="edit-this-page" href="https://github.com/netlify/netlify-cms/blob/master/website/site/content/{{ .File.Path }}">
|
||||
<svg version="1.1" id="pencil" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="14px" height="14px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
|
||||
<path d="M398.875,248.875L172.578,475.187l-22.625-22.625L376.25,226.265L398.875,248.875z M308.375,158.39L82.063,384.687
|
||||
l45.266,45.25L353.625,203.64L308.375,158.39z M263.094,113.125L36.828,339.437l22.625,22.625L285.75,135.765L263.094,113.125z
|
||||
M308.375,67.875L285.719,90.5L421.5,226.265l22.625-22.625L308.375,67.875z M376.25,0L331,45.25l135.75,135.766L512,135.781
|
||||
L376.25,0z M32,453.5V480h26.5L32,453.5 M0,376.25L135.766,512H0V376.25L0,376.25z"/>
|
||||
</svg>
|
||||
Edit this page
|
||||
</a>
|
25
website/site/layouts/partials/footer.html
Executable file
25
website/site/layouts/partials/footer.html
Executable file
@ -0,0 +1,25 @@
|
||||
<footer>
|
||||
<p class="contained"><a href="https://github.com/netlify/netlify-cms/blob/master/LICENSE" class="text-link">Distributed under MIT License</a> ·
|
||||
<a href="https://github.com/netlify/netlify-cms/blob/master/CODE_OF_CONDUCT.md" class="text-link">Code of Conduct</a></p>
|
||||
</footer>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
{{ if or (eq .Section "docs") (eq .Title "Docs") }}
|
||||
<script src="/jquery.scrollTo.min.js"></script>
|
||||
<script src="/jquery.localScroll.min.js"></script>
|
||||
<script src="/prism.js"></script>
|
||||
{{ end }}
|
||||
{{ if eq .Title "Community" }}
|
||||
<script src="/moment.min.js"></script>
|
||||
{{ end }}
|
||||
<script src="/app.js"></script>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
|
||||
<script type="text/javascript"> docsearch({
|
||||
apiKey: '08d03dc80862e84c70c5a1e769b13019',
|
||||
indexName: 'netlifycms',
|
||||
inputSelector: '.algolia-search',
|
||||
debug: false // Set debug to true if you want to inspect the dropdown
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
40
website/site/layouts/partials/header.html
Executable file
40
website/site/layouts/partials/header.html
Executable file
@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ .Site.Title }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" href="/img/favicon/favicon-32x32.png" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="/img/favicon/favicon-16x16.png" sizes="16x16">
|
||||
<link rel="manifest" href="/img/favicon/manifest.json">
|
||||
<link rel="mask-icon" href="/img/favicon/safari-pinned-tab.svg" color="#96cf05">
|
||||
<meta name="apple-mobile-web-app-title" content="NetlifyCMS">
|
||||
<meta name="application-name" content="NetlifyCMS">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<link rel="stylesheet" href="/css/main.css"/>
|
||||
{{ if or (eq .Section "docs") (eq .Title "Docs") }}
|
||||
<link rel="stylesheet" href="/css/lib/prism.css"/>
|
||||
{{ end }}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
{{ range .Site.Data.notifications }}
|
||||
{{ range . }}
|
||||
{{ if .published }}
|
||||
<a href="{{ .url }}" class="notification {{ if .loud }}notification-loud{{end}}">{{ .message }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<header id="header" {{ if or (eq .Section "docs") (eq .Title "Docs") }}class="docs"{{ end }}>
|
||||
<div class="contained">
|
||||
<a href="/" class="logo"><img src="/img/netlify-cms-logo.svg"/></a>
|
||||
<a class="nav-link docs-link" href="/docs">Docs</a>
|
||||
<a class="nav-link contributing-link" href="/docs/contributor-guide">Contributing</a>
|
||||
<a class="nav-link" href="/community">Community</a>
|
||||
<a class="utility-input">
|
||||
<img src="/img/search.svg" />
|
||||
<input type="search" placeholder="Search the docs" class="algolia-search"/>
|
||||
</a>
|
||||
<a href="https://github.com/netlify/netlify-cms" class="btn-secondary small github-btn "><img src="/img/github.svg"/> Fork me on GitHub</a>
|
||||
</div>
|
||||
</header>
|
Reference in New Issue
Block a user