Skip to content

Commit

Permalink
nest static assets in 'legacy' directory #230
Browse files Browse the repository at this point in the history
* update paths correspondingly
* remove some of the code related to tools as they were causing hexo render to fail
  • Loading branch information
mef committed Feb 3, 2023
1 parent f15b5bc commit 8180e34
Show file tree
Hide file tree
Showing 297 changed files with 8,297 additions and 1,512 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ How it works:
* deploy step copies the server-side dynamic application `/home/srv-node-mango/app`
* server-side application (`/home/srv-node-mango/app/server.js`) to be launched separately (e.g. as a systemd daemon) - currently common for test and prod if environments are hosted in the same server.

### Deploy archived blog to alef.website

```
git checkout alef-hosted-version-wip
npm run build:prod
cp -r public/blog/archive ../alef.website/src/pages/blog
cp -r public/legacy ../alef.website/public
```


### test environment

1. build with `npm run build:test`
Expand Down
6 changes: 3 additions & 3 deletions bin/build-css.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cp node_modules/normalize.css/normalize.css source/css/ \
&& cp -r node_modules/font-awesome/fonts source/css/font-awesome/ \
&& cp -r node_modules/font-awesome/css source/css/font-awesome/
cp node_modules/normalize.css/normalize.css source/legacy/css/ \
&& cp -r node_modules/font-awesome/fonts source/legacy/css/font-awesome/ \
&& cp -r node_modules/font-awesome/css source/legacy/css/font-awesome/
12 changes: 6 additions & 6 deletions bin/build-js.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
browserify -t uglifyify dynamic/client.js | uglifyjs -c > source/js/site.js
browserify -t brfs -t uglifyify dynamic/g-realtime.js | uglifyjs -c > source/js/g-realtime.js
browserify -t brfs -t uglifyify dynamic/myTagOverflowChecker.js | uglifyjs -c > source/js/myTagOverflowChecker.js
browserify -t brfs -t uglifyify dynamic/pullReceipt.js | uglifyjs -c > source/js/pullReceipt.js
browserify -t brfs -t uglifyify dynamic/myTagOverflow.js | uglifyjs -c > source/js/myTagOverflow.js
cp node_modules/localforage/dist/localforage.nopromises.min.js source/js/localforage.nopromises.min.js
browserify -t uglifyify dynamic/client.js | uglifyjs -c > source/legacy/js/site.js
#~browserify -t brfs -t uglifyify dynamic/g-realtime.js | uglifyjs -c > source/js/g-realtime.js
#~browserify -t brfs -t uglifyify dynamic/myTagOverflowChecker.js | uglifyjs -c > source/js/myTagOverflowChecker.js
#~browserify -t brfs -t uglifyify dynamic/pullReceipt.js | uglifyjs -c > source/js/pullReceipt.js
#~browserify -t brfs -t uglifyify dynamic/myTagOverflow.js | uglifyjs -c > source/js/myTagOverflow.js
#~cp node_modules/localforage/dist/localforage.nopromises.min.js source/js/localforage.nopromises.min.js
4 changes: 0 additions & 4 deletions config/_config.yml-sample
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,3 @@ deploy:
markdown:
render:
html: true

feed:
path: /blog/atom.xml
limit: 20
236 changes: 0 additions & 236 deletions dynamic/g-realtime.js

This file was deleted.

Loading

0 comments on commit 8180e34

Please sign in to comment.