Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkhov committed Jul 5, 2020
1 parent ea8d865 commit b34bf85
Show file tree
Hide file tree
Showing 609 changed files with 29,808 additions and 22,185 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ node_modules

# https://github.com/tarkhov/postboot/issues/17
docs
src/docs/
logo.xcf
29 changes: 18 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ module.exports = function (grunt) {

var pkg = grunt.file.readJSON('package.json');

var templates = {
'docs/index.html': 'src/docs/pug/index.pug'
};
var contents = grunt.file.readJSON('./src/docs/json/contents.json');
for (var c in contents) {
var component = contents[c];
templates['docs/' + component.url + '/index.html'] = 'src/docs/pug/' + component.template + '.pug';
for (var e in component.examples) {
var article = contents[c].examples[e];
templates['docs/' + component.url + '/' + article.url + '/index.html'] = 'src/docs/pug/' + component.template + '/' + article.template + '.pug';
}
}

require('load-grunt-tasks')(grunt);

// Project configuration.
Expand Down Expand Up @@ -64,7 +77,6 @@ module.exports = function (grunt) {
'node_modules/prismjs/prism.js',
'node_modules/@fortawesome/fontawesome-free/js/all.min.js',
'dist/js/<%= pkg.name %>.min.js',
'docs/assets/js/main.js'
],
dest: 'docs/assets/js/app.js'
}
Expand Down Expand Up @@ -99,7 +111,7 @@ module.exports = function (grunt) {
},
docs: {
files: {
'docs/assets/css/main.css': 'docs/assets/scss/main.scss'
'docs/assets/css/main.css': 'src/docs/scss/main.scss'
}
}
},
Expand Down Expand Up @@ -161,7 +173,7 @@ module.exports = function (grunt) {
extraColors: customColors,
customColors: customColors,
pkg: pkg,
contents: require('./docs/assets/json/contents.json'),
contents: contents,
title: title,
url: url,
username: 'tarkhov'
Expand All @@ -178,12 +190,7 @@ module.exports = function (grunt) {
}
},
docs: {
files: {
'docs/index.html': 'docs/assets/pug/index.pug',
'docs/content.html': 'docs/assets/pug/main.pug',
'docs/v1/index.html': 'docs/assets/pug/index.pug',
'docs/v1/content.html': 'docs/assets/pug/main.pug'
}
files: templates
}
},

Expand All @@ -197,11 +204,11 @@ module.exports = function (grunt) {
tasks: 'dist-css'
},
docs_css: {
files: 'docs/assets/scss/*.scss',
files: 'src/docs/scss/*.scss',
tasks: 'docs-css'
},
docs_html: {
files: 'docs/assets/pug/*.pug',
files: 'src/docs/pug/*.pug',
tasks: 'docs-html'
}
},
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-2018 Alexander Tarkhov
Copyright (c) 2016-2020 Alexander Tarkhov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ Web app prototyping library based on Bootstrap framework.

Library | Version
------- | -------
Bootstrap | 4.4.1
Bootstrap | 4.5.0

PostBoot does **not overwrite** any components of Bootstrap, but only extends most of them.
PostBoot does **not overwrite** any components of Bootstrap, but only extends most of them. You can use it completely **safe**.

## Installation

### Manually

[Download](https://github.com/tarkhov/postboot/releases/download/v1.0.0/postboot-1.0.0.zip) package and unpack it or use following commands:
[Download](https://github.com/tarkhov/postboot/releases/download/v1.0.1/postboot-1.0.1.zip) package and unpack it or use following commands:

```bash
wget -O https://github.com/tarkhov/postboot/releases/download/v1.0.0/postboot-1.0.0.zip
unzip postboot-1.0.0.zip
wget -O https://github.com/tarkhov/postboot/releases/download/v1.0.1/postboot-1.0.1.zip
unzip postboot-1.0.1.zip
```

### NodeJS

```bash
npm install [email protected].0
npm install [email protected].1
```

## Usage
Expand All @@ -58,14 +58,14 @@ npm install [email protected]

```html
<!-- CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/tarkhov/postboot/v1.0.0/dist/css/postboot.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.rawgit.com/tarkhov/postboot/v1.0.1/dist/css/postboot.min.css">

<!-- JS -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="https://cdn.rawgit.com/tarkhov/postboot/v1.0.0/dist/js/postboot.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script src="https://cdn.rawgit.com/tarkhov/postboot/v1.0.1/dist/js/postboot.min.js"></script>
```

## Author
Expand Down
Loading

0 comments on commit b34bf85

Please sign in to comment.