Skip to content

Commit 10a4d9e

Browse files
committed
Remove unused dependencies, dead analytics, and stale packaging
- Delete node_modules/ (nothing published from it) and the unused react bower package plus the dead custom_jsx layout block - Drop the Universal Analytics snippet; UA stopped processing hits in 2023 - Delete unreferenced cm-comments.js, cm-folding.js, and package.json - Exclude README and paper.js demo pages from the Jekyll build - Update README for the vendored-assets workflow
1 parent c8a5fbe commit 10a4d9e

1,033 files changed

Lines changed: 11 additions & 340747 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
_site/*
1+
_site/
2+
.jekyll-metadata
23
.DS_Store
3-
node_modules/.bin/
4-
node_modules/browserify/
5-
node_modules/paper/
6-
assets/js/webppl.js
7-
.jekyll-metadata

README.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
## The Design and Implementation of Probabilistic Programming Languages
22

3-
A web book, available online at [dippl.org](http://dippl.org/)
3+
A web book, available online at [dippl.org](https://dippl.org/)
44

55
Requirements:
66

77
- [git](http://git-scm.com/)
8-
- [nodejs](http://nodejs.org)
98
- [jekyll](http://jekyllrb.com/)
109

11-
Installation:
10+
Run a local webserver:
1211

1312
git clone https://github.com/probmods/dippl.git
1413
cd dippl
15-
npm install
16-
npm install -g browserify bower uglifyjs
17-
bower install
18-
19-
Run local webserver:
20-
2114
jekyll serve --watch
2215

23-
## Assets
16+
All JavaScript and CSS dependencies are vendored in the repo, so no package manager is needed:
2417

25-
To update webppl, webppl-viz, and webppl-editor, simply copy the minified Javascript files (`webppl-editor.min.js`, `webppl-viz.min.js`, `webppl.min.js`) and CSS files (`webppl-editor.css`, `webppl-viz.css`) to `assets/js` and `assets/css` respectively.
18+
- The webppl runtime, editor, and visualization library live in `assets/js` and `assets/css` (currently webppl v0.9.9, webppl-editor 1.0.9, webppl-viz 0.7.11). To upgrade, replace those files with new builds and update the references in `_layouts/default.html`.
19+
- Third-party browser libraries (jQuery, Bootstrap, d3, etc.) live in `bower_components`. The directory name is historical; bower itself is no longer used.
2620

27-
- webppl: f24238e (v0.7.0+ dev)
28-
- webppl-editor: d888aa2
29-
- webppl-viz: 2450784
21+
The site deploys via GitHub Pages from the `gh-pages` branch.

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
markdown: kramdown
2+
exclude:
3+
- README.md
4+
- bower_components/paper/examples

assets/js/cm-comments.js

Lines changed: 0 additions & 147 deletions
This file was deleted.

assets/js/cm-folding.js

Lines changed: 0 additions & 153 deletions
This file was deleted.

assets/js/custom.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ function setupCodeBoxes(){
2525
$(setupCodeBoxes);
2626

2727

28-
// Google analytics
29-
30-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
31-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
32-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
33-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
34-
35-
ga('create', 'UA-54996-12', 'auto');
36-
ga('send', 'pageview');
37-
38-
3928
// Date
4029

4130
function setDate(){

bower.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"underscore": "~1.6.0",
2020
"jquery": "~2.1.1",
2121
"bootstrap": "~3.2.0",
22-
"react": "~0.11.2",
2322
"showdown": "~0.3.1"
2423
}
2524
}

bower_components/react/.bower.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)