Skip to content

Commit

Permalink
Merge pull request #37 from Kitware/documentation-site
Browse files Browse the repository at this point in the history
Documentation site
  • Loading branch information
jourdain committed Mar 3, 2016
2 parents 9f9bd19 + 634d660 commit 1d77a01
Show file tree
Hide file tree
Showing 113 changed files with 2,446 additions and 3,011 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
.npmrc
npm-debug.log
node_modules
documentation/www
documentation/_tmp
43 changes: 0 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,9 @@ having a ParaView or VTK backend sending either geometry or images to the client

## Documentation

** COMING SOON **

See the [documentation](https://kitware.github.io/paraviewweb) for a
getting started guide, advanced documentation, and API descriptions.

[Generated API](https://kitware.github.io/paraviewweb/api)

Generated examples:

* [AbstractViewerMenu](https://kitware.github.io/paraviewweb/examples/AbstractViewerMenu)
* [ActionListWidget](https://kitware.github.io/paraviewweb/examples/ActionListWidget)
* [ButtonSelectorWidget](https://kitware.github.io/paraviewweb/examples/ButtonSelectorWidget)
* [CollapsibleWidget](https://kitware.github.io/paraviewweb/examples/CollapsibleWidget)
* [ColorPickerWidget](https://kitware.github.io/paraviewweb/examples/ColorPickerWidget)
* [CompositePipelineWidget](https://kitware.github.io/paraviewweb/examples/CompositePipelineWidget)
* [ContentEditableWidget](https://kitware.github.io/paraviewweb/examples/ContentEditableWidget)
* [Coordinate2DWidget](https://kitware.github.io/paraviewweb/examples/Coordinate2DWidget)
* [DoubleSliderWidget](https://kitware.github.io/paraviewweb/examples/DoubleSliderWidget)
* [DropDownWidget](https://kitware.github.io/paraviewweb/examples/DropDownWidget)
* [EqualizerWidget](https://kitware.github.io/paraviewweb/examples/EqualizerWidget)
* [FileBrowserWidget](https://kitware.github.io/paraviewweb/examples/FileBrowserWidget)
* [FloatImageControl](https://kitware.github.io/paraviewweb/examples/FloatImageControl)
* [GitTreeWidget](https://kitware.github.io/paraviewweb/examples/GitTreeWidget)
* [ImageBuilderViewer](https://kitware.github.io/paraviewweb/examples/ImageBuilderViewer)
* [ImageRenderer](https://kitware.github.io/paraviewweb/examples/ImageRenderer)
* [InlineToggleButtonWidget](https://kitware.github.io/paraviewweb/examples/InlineToggleButtonWidget)
* [LayoutsWidget](https://kitware.github.io/paraviewweb/examples/LayoutsWidget)
* [LightControl](https://kitware.github.io/paraviewweb/examples/LightControl)
* [LineChartViewer](https://kitware.github.io/paraviewweb/examples/LineChartViewer)
* [LookupTableManagerControl](https://kitware.github.io/paraviewweb/examples/LookupTableManagerControl)
* [LookupTableWidget](https://kitware.github.io/paraviewweb/examples/LookupTableWidget)
* [MultiLayoutViewer](https://kitware.github.io/paraviewweb/examples/MultiLayoutViewer)
* [MultiViewControl](https://kitware.github.io/paraviewweb/examples/MultiViewControl)
* [NumberInputWidget](https://kitware.github.io/paraviewweb/examples/NumberInputWidget)
* [NumberSliderWidget](https://kitware.github.io/paraviewweb/examples/NumberSliderWidget)
* [PixelOperatorControl](https://kitware.github.io/paraviewweb/examples/PixelOperatorControl)
* [Probe3DViewer](https://kitware.github.io/paraviewweb/examples/Probe3DViewer)
* [ProbeControl](https://kitware.github.io/paraviewweb/examples/ProbeControl)
* [QueryDataModelControl](https://kitware.github.io/paraviewweb/examples/QueryDataModelControl)
* [QueryDataModelWidget](https://kitware.github.io/paraviewweb/examples/QueryDataModelWidget)
* [TextInputWidget](https://kitware.github.io/paraviewweb/examples/TextInputWidget)
* [ToggleIconButtonWidget](https://kitware.github.io/paraviewweb/examples/ToggleIconButtonWidget)
* [TogglePanelWidget](https://kitware.github.io/paraviewweb/examples/TogglePanelWidget)
* [VolumeControl](https://kitware.github.io/paraviewweb/examples/VolumeControl)


## Development

You can start building the ParaViewWeb library by itself with the following
Expand Down
7 changes: 7 additions & 0 deletions documentation/www/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.DS_Store
.idea/
node_modules/
*.log
db.json
public/
.deploy*/
37 changes: 37 additions & 0 deletions documentation/www/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ParaViewWeb developer Website

The website for ParaViewWeb can be found at [kitware/paraviewweb](https://github.com/kitware/paraviewweb) repository.

## Getting started

Install dependencies:

``` bash
$ git clone https://github.com/kitware/paravieweb.git
$ cd documentation/www
```

Generate:

``` bash
$ npm run build
```

Run server:

``` bash
$ npm run server
```

## Contributors

- English - [tommy351](https://github.com/tommy351)
- 正體中文 - [tommy351](https://github.com/tommy351)
- 简体中文 - [pinggod](https://github.com/pinggod), [Xuanwo](https://github.com/Xuanwo)

## License

[CC BY 4.0](http://creativecommons.org/licenses/by/4.0/)

[tommy351]: https://github.com/tommy351
[pinggod]: https://github.com/pinggod
22 changes: 22 additions & 0 deletions documentation/www/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: ParaViewWeb
description: "ParaViewWeb is a Web framework which allow to bring the power of ParaView and VTK into the Web."
subtitle: "Small framework for bringing scientific visualization to the Web"
author: Kitware Inc.
language: en
timezone: UTC
url: https://kitware.github.io/paraviewweb
root: /paraviewweb/
permalink: news/:year/:month/:day/:title/
archive_dir: news
code_dir: downloads/code
new_post_name: :year-:month-:day-:title.md # File name of new posts
post_asset_folder: true
highlight:
enable: true
line_number: false
per_page: 0

theme: navy

google_analytics:
github: kitware/paraviewweb
72 changes: 72 additions & 0 deletions documentation/www/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
'use strict';

var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var cssnano = require('cssnano');

var dirs = {
public: 'public',
screenshots: 'public/build/screenshots'
};

gulp.task('useref', ['screenshot'], function(){
var assets = $.useref.assets({
searchPath: 'public'
});

return gulp.src('public/**/*.html')
// .pipe(assets)
.pipe($.uniqueFiles())
.pipe($.if('*.css', $.postcss([
cssnano()
])))
.pipe($.if('*.js', $.uglify()))
.pipe($.rev())
.pipe(assets.restore())
// .pipe($.useref())
// .pipe($.revReplace({
// prefix: '/'
// }))
.pipe(gulp.dest('public'));
});

gulp.task('screenshot:rev', function(){
return gulp.src('public/applications/screenshots/*.png')
.pipe($.rev())
.pipe(gulp.dest(dirs.screenshots))
.pipe($.rev.manifest())
.pipe(gulp.dest(dirs.screenshots));
});

gulp.task('screenshot:resize', ['screenshot:rev'], function(){
return gulp.src(dirs.screenshots + '/*.png')
.pipe($.responsive({
'*.png': [
{
width: 400,
progressive: true
},
{
progressive: true,
rename: {
suffix: '@2x'
}
}
]
}))
.pipe(gulp.dest(dirs.screenshots));
});

gulp.task('screenshot:revreplace', ['screenshot:rev'], function(){
return gulp.src([dirs.screenshots + '/rev-manifest.json', 'public/applications/index.html'])
.pipe($.revCollector({
replaceReved: true,
dirReplacements: {
'/applications/screenshots': '/build/screenshots'
}
}))
.pipe(gulp.dest('public/applications'));
});

gulp.task('screenshot', ['screenshot:rev', 'screenshot:resize', 'screenshot:revreplace']);
gulp.task('default', ['useref', 'screenshot']);
41 changes: 41 additions & 0 deletions documentation/www/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "paraviewweb-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.2.0"
},
"scripts": {
"build": "hexo generate && gulp",
"server": "hexo server",
"doc": "npm run build && npm run server"
},
"dependencies": {
"cheerio": "^0.20.0",
"hexo": "^3.2.0",
"hexo-deployer-git": "^0.1.0",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-feed": "^1.1.0",
"hexo-generator-sitemap": "^1.1.2",
"hexo-renderer-jade": "^0.3.0",
"hexo-renderer-marked": "^0.2.10",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0",
"lodash": "^4.5.1",
"lunr": "^0.6.0"
},
"devDependencies": {
"cssnano": "^3.5.2",
"gulp": "^3.9.1",
"gulp-if": "^2.0.0",
"gulp-load-plugins": "^1.2.0",
"gulp-postcss": "^6.1.0",
"gulp-responsive": "^2.1.0",
"gulp-rev": "^6.0.1",
"gulp-rev-collector": "^1.0.2",
"gulp-rev-replace": "^0.4.3",
"gulp-uglify": "^1.5.3",
"gulp-unique-files": "^0.1.2",
"gulp-useref": "^2.1.0"
}
}
2 changes: 2 additions & 0 deletions documentation/www/scaffolds/page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: {{ title }}
---
2 changes: 2 additions & 0 deletions documentation/www/scaffolds/post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: {{ title }}
---
Loading

0 comments on commit 1d77a01

Please sign in to comment.