mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Embed CSS; a bit unorthodox, but we’re a single page so there’s no point in separate .css files and their separate HTTP requests
This commit is contained in:
parent
0145bf397a
commit
2392a91033
5 changed files with 504 additions and 4 deletions
4
Cakefile
4
Cakefile
|
@ -129,6 +129,9 @@ task 'build:browser', 'rebuild the merged script for inclusion in the browser',
|
||||||
|
|
||||||
task 'doc:site', 'watch and continually rebuild the documentation for the website', ->
|
task 'doc:site', 'watch and continually rebuild the documentation for the website', ->
|
||||||
# Helpers
|
# Helpers
|
||||||
|
css = fs.readFileSync('./documentation/css/docs.css', 'utf-8') + '\n' +
|
||||||
|
fs.readFileSync('./documentation/css/tomorrow.css', 'utf-8')
|
||||||
|
|
||||||
logo = fs.readFileSync './documentation/images/logo.svg', 'utf-8'
|
logo = fs.readFileSync './documentation/images/logo.svg', 'utf-8'
|
||||||
|
|
||||||
codeFor = ->
|
codeFor = ->
|
||||||
|
@ -220,6 +223,7 @@ task 'doc:site', 'watch and continually rebuild the documentation for the websit
|
||||||
do renderIndex = ->
|
do renderIndex = ->
|
||||||
render = _.template fs.readFileSync(indexFile, 'utf-8')
|
render = _.template fs.readFileSync(indexFile, 'utf-8')
|
||||||
output = render
|
output = render
|
||||||
|
css: css
|
||||||
logo: logo
|
logo: logo
|
||||||
codeFor: codeFor()
|
codeFor: codeFor()
|
||||||
releaseHeader: releaseHeader
|
releaseHeader: releaseHeader
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5,8 +5,6 @@
|
||||||
<title>CoffeeScript</title>
|
<title>CoffeeScript</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="canonical" href="http://coffeescript.org" />
|
<link rel="canonical" href="http://coffeescript.org" />
|
||||||
<link rel="stylesheet" type="text/css" href="v1/css/docs.css" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="v1/css/tomorrow.css" />
|
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||||
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
|
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
|
||||||
|
@ -14,6 +12,10 @@
|
||||||
<link rel="manifest" href="/manifest.json">
|
<link rel="manifest" href="/manifest.json">
|
||||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
<%= css %>
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue