mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
Add buildscript for GitHub pages generation
This commit is contained in:
parent
02e7c3ff07
commit
2a45199ac7
4
.gitignore
vendored
4
.gitignore
vendored
@ -42,3 +42,7 @@ gradle-app.setting
|
||||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||
!gradle-wrapper.jar
|
||||
|
||||
### Node
|
||||
|
||||
/node_modules/
|
||||
npm-debug.log
|
@ -61,4 +61,4 @@ DEPENDENCIES
|
||||
wdm (>= 0.1.0)
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.6
|
||||
1.11.2
|
||||
|
41
Gruntfile.js
Normal file
41
Gruntfile.js
Normal file
@ -0,0 +1,41 @@
|
||||
module.exports = function(grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
//jekyll: {
|
||||
// serve: { // Another target
|
||||
// options: {
|
||||
// bundleExec: true,
|
||||
// config: 'sdkdocs-template/jekyll/_config-defaults.yml,_config_gh-pages.yml',
|
||||
// serve: false,
|
||||
// verbose: true
|
||||
// }
|
||||
// }
|
||||
//},
|
||||
exec: {
|
||||
build: {
|
||||
cmd: 'rake build[_config_gh-pages.yml]'
|
||||
}
|
||||
},
|
||||
buildcontrol: {
|
||||
options: {
|
||||
dir: '_site',
|
||||
commit: true,
|
||||
push: true,
|
||||
message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%'
|
||||
},
|
||||
pages: {
|
||||
options: {
|
||||
remote: 'git@github.com:JetBrains/intellij-sdk-docs.git',
|
||||
branch: 'gh-pages'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-exec');
|
||||
grunt.loadNpmTasks('grunt-build-control');
|
||||
|
||||
grunt.registerTask('build', ['exec:build']);
|
||||
grunt.registerTask('deploy', ['build', 'buildcontrol:pages']);
|
||||
grunt.registerTask('default', ['deploy']);
|
||||
};
|
@ -11,7 +11,4 @@ upsource:
|
||||
repo: idea-ce
|
||||
# This is the SHA for the 143.381.42 release, but it's not indexed on Upsource
|
||||
# commit: db70c2b4bdc79eb5f551632aade418c0de50e840
|
||||
commit: 1731d054af4ca27aa827c03929e27eeb0e6a8366
|
||||
|
||||
include:
|
||||
- ".nojekyll"
|
||||
commit: 1731d054af4ca27aa827c03929e27eeb0e6a8366
|
17
_config_gh-pages.yml
Normal file
17
_config_gh-pages.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
product_name: IntelliJ Platform SDK
|
||||
product_version:
|
||||
product_type: DevGuide
|
||||
|
||||
baseurl: /intellij-sdk-docs/
|
||||
|
||||
# This is tag 143.381.42
|
||||
upsource:
|
||||
server: upsource.jetbrains.com
|
||||
repo: idea-ce
|
||||
# This is the SHA for the 143.381.42 release, but it's not indexed on Upsource
|
||||
# commit: db70c2b4bdc79eb5f551632aade418c0de50e840
|
||||
commit: 1731d054af4ca27aa827c03929e27eeb0e6a8366
|
||||
|
||||
include:
|
||||
- ".nojekyll"
|
30
package.json
Normal file
30
package.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "intellij-sdk-docs",
|
||||
"version": "1.0.0",
|
||||
"description": "IntelliJ Platform SDK Documentation\r =======",
|
||||
"main": "Gruntfile.js",
|
||||
"dependencies": {
|
||||
"grunt-build-control": "^0.6.2",
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-exec": "^0.4.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-build-control": "^0.6.2",
|
||||
"grunt-exec": "^0.4.6",
|
||||
"grunt-jekyll": "^0.4.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/JetBrains/intellij-sdk-docs"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"bugs": {
|
||||
"url": "https://github.com/JetBrains/intellij-sdk-docs/issues"
|
||||
},
|
||||
"homepage": "https://github.com/JetBrains/intellij-sdk-docs"
|
||||
}
|
@ -1 +1 @@
|
||||
Subproject commit e864e671662aa6ca1d2f88f6ff64027d9f77d748
|
||||
Subproject commit 443fbc8625f0405017ec0d254a35fa1c9dadfe90
|
Loading…
x
Reference in New Issue
Block a user