Skip to content

Commit

Permalink
1.remove default CNAME file.
Browse files Browse the repository at this point in the history
2.remove index.appcache and index.appcache.tmpl to cancel html5 appcache support.
3.update README.
  • Loading branch information
zhaoda committed Mar 22, 2014
1 parent 1517721 commit 8746847
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 45 deletions.
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

12 changes: 1 addition & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ module.exports = function(grunt) {

})

// Release task.
grunt.template.addDelimiters('release', '<#', '#>')
grunt.task.registerTask('release', 'Release task.', function() {
var appcachetmpl = grunt.file.read('index.appcache.tmpl'),
version = grunt.template.today('yyyy-mm-dd HH:MM:ss')

grunt.file.write('index.appcache', grunt.template.process(appcachetmpl, {data: {version: version}, delimiters: 'release'}))
})

// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-concat')
grunt.loadNpmTasks('grunt-contrib-jshint')
Expand All @@ -93,8 +84,7 @@ module.exports = function(grunt) {
'concat',
'uglify',
'less',
'clean',
'release'
'clean'
])

// // Test task.
Expand Down
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,9 @@ For the impatient, here's how to get a Spring blog site up and running.
]
})
```
* Open the `index.appcache` appcache manifest file to modify version time.

```
# Version 2014-03-20 13:23:18
```
* Put your domain into the `CNAME ` file if you have.

```
spring.zhaoda.net
```
* Commit your change and push it.

### And then
Expand Down Expand Up @@ -119,12 +111,9 @@ spring/
| ├── normalize.less #normalize style
| ├── pull2refresh.less #pull2refresh widget style
| └── side.html #side panel style
├── CNAME #costom domain config
├── dev.html #used to develop
├── favicon.ico #website icon
├── Gruntfile.js #Grunt task config
├── index.appcache #runtime appcache manifest
├── index.appcache.tmpl #the template of index.appcache
├── index.html #used to runtime
└── package.json #nodejs install config
```
Expand Down
10 changes: 0 additions & 10 deletions index.appcache

This file was deleted.

10 changes: 0 additions & 10 deletions index.appcache.tmpl

This file was deleted.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html manifest="index.appcache">
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "spring",
"title": "Spring",
"version": "0.0.1",
"version": "0.1.0",
"description": "Spring is a blog engine written by github issues",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8746847

Please sign in to comment.