Skip to content

Commit

Permalink
Small style and perfomance improvements (#68)
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Felipe C. C. Pinto <[email protected]>
  • Loading branch information
mateusfccp authored Apr 22, 2024
1 parent b4d4d35 commit 116fd6d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ STATUS_PREFIX := "\033[1;32m[+]\033[0m "

.PHONY: clean shell

all: setup $(HTML_FILES) minify
all: setup $(HTML_FILES) minify copy

shell:
$(DOCKER_RUN) -i --entrypoint=/bin/zsh $(DOCKER_IMG)
Expand All @@ -41,6 +41,10 @@ minify:
@$(MINIFY) --bundle org-theme/dist/long/bundle.js -o $(STATIC_FILES_FOLDER)/long.js
@$(MINIFY) --bundle org-theme/dist/long/bundle.js -o $(STATIC_FILES_FOLDER)/short.js

copy:
@printf $(STATUS_PREFIX); echo "COPYING IMAGE FILES"
@cp images/logo.png $(STATIC_FILES_FOLDER)/logo.png

server:
python3 -m http.server 8000 --directory $(STATIC_FILES_FOLDER)

Expand Down
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions org-theme/dist/long/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,8 @@ code::after {
}
.collection-avatar {
width: 35px;
height: 35px;
overflow: hidden;
white-space: nowrap;
background-color: var(--color-lighter-gray);
border-radius: 35px;
border: 1px solid var(--color-light-gray);
display: inline-block;
vertical-align: middle;
margin-right: 0.5rem;
Expand Down
2 changes: 1 addition & 1 deletion org-theme/dist/long/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@
// Hold bootstrap until document body is parsed
exports.onload = bootstrap;

})(window,{"table-of-contents":true,"section-numbers":true,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"http://www.lisperati.com/lisplogo_flag_64.png","title":"Common Lisp Brasil","url":"/"}});
})(window,{"table-of-contents":true,"section-numbers":true,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"logo.png","title":"Common Lisp Brasil","url":"/"}});
4 changes: 0 additions & 4 deletions org-theme/dist/short/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,8 @@ code::after {
}
.collection-avatar {
width: 35px;
height: 35px;
overflow: hidden;
white-space: nowrap;
background-color: var(--color-lighter-gray);
border-radius: 35px;
border: 1px solid var(--color-light-gray);
display: inline-block;
vertical-align: middle;
margin-right: 0.5rem;
Expand Down
2 changes: 1 addition & 1 deletion org-theme/dist/short/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@
// Hold bootstrap until document body is parsed
exports.onload = bootstrap;

})(window,{"table-of-contents":false,"section-numbers":false,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"http://www.lisperati.com/lisplogo_flag_64.png","title":"Common Lisp Brasil","url":"/"}});
})(window,{"table-of-contents":false,"section-numbers":false,"postamble":true,"fancy-lists":true,"fancy-icons":true,"back-to-top":true,"back-to-top-text":"Back to top","collection":{"enabled":true,"avatar":"logo.png","title":"Common Lisp Brasil","url":"/"}});
4 changes: 3 additions & 1 deletion org-theme/setup/long.setup
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# "back-to-top": true,
# "collection": {
# "enabled": true,
# "avatar": "http://www.lisperati.com/lisplogo_flag_64.png",
# "avatar": "logo.png",
# "title": "Common Lisp Brasil",
# "url": "/"
# }
Expand All @@ -20,5 +20,7 @@
# I recommend you to generate your own css/js files by forking, cloning and customizing the file
# theme.json before building it.
#
#+HTML_HEAD: <meta name="viewport" content="width=device-width, initial-scale=1" />
#+HTML_HEAD: <link rel="icon" href="data:,">
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="long.css"/>
#+HTML_HEAD: <script src="long.js" type="text/javascript" ></script>
2 changes: 2 additions & 0 deletions org-theme/setup/short.setup
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
# theme.json before building it.
#
#
#+HTML_HEAD: <meta name="viewport" content="width=device-width, initial-scale=1" />
#+HTML_HEAD: <link rel="icon" href="data:,">
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="short.css"/>
#+HTML_HEAD: <script src="short.js" type="text/javascript" ></script>

0 comments on commit 116fd6d

Please sign in to comment.