Skip to content

Commit

Permalink
Initial commit for site
Browse files Browse the repository at this point in the history
  • Loading branch information
franhp committed May 24, 2015
1 parent 43bf121 commit 0900c76
Show file tree
Hide file tree
Showing 14 changed files with 275 additions and 5 deletions.
76 changes: 71 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,72 @@
*.pyc
*.pyo
env/
env3/
.build/
# Catux specific
backup.xml
bower_components/
node_modules/
app/public/
venv/
.sass-cache/

# PyCharm
.idea/

### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/


121 changes: 121 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

config: {
app: 'app'
},

connect: {
options: {
port: 9000,
livereload: 35729,
// Change this to '0.0.0.0' to access the server from outside
hostname: 'localhost'
},
livereload: {
options: {
open: true,
base: [
'.tmp',
'<%= config.app %>/public'
]
}
},
},
watch: {
options: {
livereload: true,
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= config.app %>/public/{,*/}*.html',
'<%= config.app %>/public/css/{,*/}*.css',
'<%= config.app %>/public/images/{,*/}*',
]
},
compass: {
files: ['**/*.{scss,sass}'],
tasks: ['compass:dev']
},
jinja2: {
files: ['app/src/templates/**'],
tasks: ['jinja2:dev']
},
copy: {
files: ['app/src/images/*', 'app/src/fonts/*'],
tasks: ['copy:main']
}
},
compass: {
dev: {
options: {
sassDir: ['app/src/stylesheets'],
cssDir: ['app/public/css'],
environment: 'development'
}
},
prod: {
options: {
sassDir: ['app/src/stylesheets'],
cssDir: ['app/public/css'],
environment: 'production',
outputStyle: 'compressed'
}
},
},
jinja2: {
main: {
options:{
template_path: 'app/src/templates',
context_path: 'app/src/templates/context'
},
files: [{
expand: true,
cwd: 'app/src/templates',
src: ['index.html', 'posts/*.html'],
dest: 'app/public',
ext: '.html'
}]
}
},
copy: {
main: {
files: [
{
expand: true,
cwd: 'app/src/images',
src: '**/*',
dest: 'app/public/images/'
},
{
expand: true,
cwd: 'bower_components/fontawesome/fonts/',
src: '**/*',
dest: 'app/public/fonts/'
}
]

}
}
});

// Load the plugin
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-jinja2');


// Default task(s).
grunt.registerTask('default', ['connect:livereload', 'compass:dev', 'jinja2', 'copy', 'watch']);
// prod build
grunt.registerTask('prod', ['compass:prod', 'jinja2', 'copy']);

};
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Installation
============

```
npm install
bower install
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
grunt
```
Empty file added app/src/images/README
Empty file.
Empty file added app/src/js/README
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions app/src/stylesheets/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import "variables";
@import "../../../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap-compass.scss";
@import "../../../bower_components/fontawesome/scss/font-awesome.scss";
10 changes: 10 additions & 0 deletions app/src/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>

</body>
</html>
Empty file.
10 changes: 10 additions & 0 deletions app/src/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>

</body>
</html>
10 changes: 10 additions & 0 deletions app/src/templates/posts/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>

</body>
</html>
21 changes: 21 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "catux-homepage",
"version": "2.0.0",
"authors": [
"Catux"
],
"license": "GPL",
"private": true,
"homepage": "http://catux.org/",
"dependencies": {
"bootstrap-sass": "latest",
"fontawesome": "latest"
},
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "package",
"version": "2.0.0",
"dependencies": {},
"author": "Catux",
"devDependencies": {
"grunt": "latest",
"grunt-contrib-watch": "latest",
"grunt-contrib-compass": "latest",
"grunt-contrib-connect": "latest",
"grunt-contrib-copy": "latest",
"grunt-jinja2": "latest",
"grunt-cli": "latest",
"bower": "latest",
"compass": "latest"
}
}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
python-dateutil==2.1
xmltodict==0.8.1
jinja2==2.7.3

0 comments on commit 0900c76

Please sign in to comment.