build github.io webpage from README.md
This commit is contained in:
parent
4da9f5ff51
commit
b11e6f9120
@ -146,13 +146,21 @@ module.exports = (grunt) ->
|
|||||||
git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.meta.version %>."
|
git tag -af stable -m "<%= pkg.meta.name %> v<%= pkg.meta.version %>."
|
||||||
git checkout -b tmp
|
git checkout -b tmp
|
||||||
git merge --no-commit -s ours gh-pages
|
git merge --no-commit -s ours gh-pages
|
||||||
git checkout gh-pages "builds/*<%= pkg.meta.suffix.beta %>.*"
|
git checkout gh-pages "builds/*<%= pkg.meta.suffix.beta %>.*" README.md index.html
|
||||||
git commit -am "Move <%= pkg.meta.name %> v<%= pkg.meta.version %> to stable channel."
|
git commit -am "Move <%= pkg.meta.name %> v<%= pkg.meta.version %> to stable channel."
|
||||||
git checkout gh-pages
|
git checkout gh-pages
|
||||||
git merge --ff-only tmp
|
git merge --ff-only tmp
|
||||||
git branch -d tmp
|
git branch -d tmp
|
||||||
git checkout @{-2}
|
git checkout @{-2}
|
||||||
""".split('\n').join('&&')
|
""".split('\n').join('&&')
|
||||||
|
web:
|
||||||
|
command: """
|
||||||
|
git commit -am "Build web page."
|
||||||
|
git checkout gh-pages
|
||||||
|
git checkout - README.md index.html
|
||||||
|
git commit -am "Update web page."
|
||||||
|
git checkout -
|
||||||
|
""".split('\n').join('&&')
|
||||||
push:
|
push:
|
||||||
command: 'git push origin --tags -f && git push origin --all'
|
command: 'git push origin --tags -f && git push origin --all'
|
||||||
|
|
||||||
@ -194,6 +202,13 @@ module.exports = (grunt) ->
|
|||||||
'testbuilds/<%= pkg.name %><%= pkg.meta.suffix.dev %>.meta.js'
|
'testbuilds/<%= pkg.name %><%= pkg.meta.suffix.dev %>.meta.js'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
markdown:
|
||||||
|
web:
|
||||||
|
src: 'README.md'
|
||||||
|
dest: 'index.html'
|
||||||
|
options:
|
||||||
|
template: 'template.jst'
|
||||||
|
|
||||||
require('load-grunt-tasks') grunt
|
require('load-grunt-tasks') grunt
|
||||||
|
|
||||||
grunt.registerTask 'default', [
|
grunt.registerTask 'default', [
|
||||||
@ -289,6 +304,11 @@ module.exports = (grunt) ->
|
|||||||
'shell:stable'
|
'shell:stable'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
grunt.registerTask 'web', [
|
||||||
|
'markdown:web'
|
||||||
|
'shell:web'
|
||||||
|
]
|
||||||
|
|
||||||
grunt.registerTask 'push', [
|
grunt.registerTask 'push', [
|
||||||
'shell:push'
|
'shell:push'
|
||||||
]
|
]
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
# 4chan X
|
||||||
Adds various features to 4chan.
|
Adds various features to 4chan.
|
||||||
A continuation of the fork formerly maintained by [Seaweed](https://github.com/seaweedchan/4chan-x) and subsequently [Spittie](https://github.com/Spittie/4chan-x).
|
A continuation of the fork formerly maintained by [Seaweed](https://github.com/seaweedchan/4chan-x) and subsequently [Spittie](https://github.com/Spittie/4chan-x).
|
||||||
|
|
||||||
@ -11,7 +12,7 @@ Install [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonk
|
|||||||
|
|
||||||
Greasemonkey 2.1 also fixed [another bug](https://github.com/greasemonkey/greasemonkey/issues/1937) that can break posting of images from URLs and downloading images with the original filename.
|
Greasemonkey 2.1 also fixed [another bug](https://github.com/greasemonkey/greasemonkey/issues/1937) that can break posting of images from URLs and downloading images with the original filename.
|
||||||
|
|
||||||
### Known issues
|
### Known issues<!-- Firefox -->
|
||||||
The combination of Firefox 29 and Greasemonkey 2.0+ causes 4chan X not to work.
|
The combination of Firefox 29 and Greasemonkey 2.0+ causes 4chan X not to work.
|
||||||
If you have this problem, you should [upgrade Firefox](http://www.mozilla.org/en-US/firefox/new/) to version 30 or higher.
|
If you have this problem, you should [upgrade Firefox](http://www.mozilla.org/en-US/firefox/new/) to version 30 or higher.
|
||||||
Alternatively, you can downgrade to [Greasemonkey 1.15](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/#version-1.15) and turn off automatic updates for Greasemonkey ([see pic](https://raw.githubusercontent.com/ccd0/4chan-x/master/img/2014-07-12_16-19-32.png)).
|
Alternatively, you can downgrade to [Greasemonkey 1.15](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/versions/#version-1.15) and turn off automatic updates for Greasemonkey ([see pic](https://raw.githubusercontent.com/ccd0/4chan-x/master/img/2014-07-12_16-19-32.png)).
|
||||||
@ -24,7 +25,7 @@ This should also work for non-Windows/dev/canary Chrome and Chromium-based versi
|
|||||||
The stable and beta releases of Chrome on Windows will disable extensions not installed from the Chrome store, so users will need to install 4chan X from the link above.
|
The stable and beta releases of Chrome on Windows will disable extensions not installed from the Chrome store, so users will need to install 4chan X from the link above.
|
||||||
Only the latest stable version of 4chan X is available.
|
Only the latest stable version of 4chan X is available.
|
||||||
|
|
||||||
### Known issues
|
### Known issues<!-- Chromium -->
|
||||||
Some recent versions of Chromium/Chrome (38.0.2085 - 38.0.2103) (and versions of Opera based on them) suffer from a (now fixed) [bug](https://crbug.com/393686) that prevents extensions from making HTTP requests if more than one extension is enabled. This breaks, among other things, thread updating, quick reply, and, when `JSON Navigation` is enabled, the thread index. If you are experiencing this, try using another version of Chromium/Chrome/Opera, disabling your other extensions, or using a different browser.
|
Some recent versions of Chromium/Chrome (38.0.2085 - 38.0.2103) (and versions of Opera based on them) suffer from a (now fixed) [bug](https://crbug.com/393686) that prevents extensions from making HTTP requests if more than one extension is enabled. This breaks, among other things, thread updating, quick reply, and, when `JSON Navigation` is enabled, the thread index. If you are experiencing this, try using another version of Chromium/Chrome/Opera, disabling your other extensions, or using a different browser.
|
||||||
|
|
||||||
## Other browsers
|
## Other browsers
|
||||||
@ -46,6 +47,7 @@ New features and non-urgent bugfixes are released on the beta channel for furthe
|
|||||||
If you want to install the current beta version but get updates from the stable channel after that, install it from [here](https://github.com/ccd0/4chan-x/raw/beta/builds/4chan-X.user.js) for Firefox or [here](https://github.com/ccd0/4chan-x/raw/beta/builds/4chan-X.crx) for Chromium.
|
If you want to install the current beta version but get updates from the stable channel after that, install it from [here](https://github.com/ccd0/4chan-x/raw/beta/builds/4chan-X.user.js) for Firefox or [here](https://github.com/ccd0/4chan-x/raw/beta/builds/4chan-X.crx) for Chromium.
|
||||||
|
|
||||||
## More information
|
## More information
|
||||||
|
### [Source Code](https://github.com/ccd0/4chan-x)
|
||||||
### [Frequently Asked Questions](https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions)
|
### [Frequently Asked Questions](https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions)
|
||||||
### [Reporting Bugs and Contributing](https://github.com/ccd0/4chan-x/blob/master/CONTRIBUTING.md)
|
### [Reporting Bugs and Contributing](https://github.com/ccd0/4chan-x/blob/master/CONTRIBUTING.md)
|
||||||
|
|
||||||
|
|||||||
@ -47,6 +47,7 @@
|
|||||||
"grunt-contrib-copy": "0.6.0",
|
"grunt-contrib-copy": "0.6.0",
|
||||||
"grunt-contrib-watch": "0.6.1",
|
"grunt-contrib-watch": "0.6.1",
|
||||||
"grunt-crx": "0.3.3",
|
"grunt-crx": "0.3.3",
|
||||||
|
"grunt-markdown": "0.6.1",
|
||||||
"grunt-shell": "1.1.1",
|
"grunt-shell": "1.1.1",
|
||||||
"load-grunt-tasks": "0.6.0"
|
"load-grunt-tasks": "0.6.0"
|
||||||
},
|
},
|
||||||
@ -65,4 +66,4 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10"
|
"node": ">=0.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
12
template.jst
Normal file
12
template.jst
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html><head>
|
||||||
|
<title>4chan X</title>
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head><body>
|
||||||
|
<%=content%>
|
||||||
|
</body></html>
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user