-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation #43
Comments
我试验了一下:
.none {
color: transparent;
text-shadow: 3px 3px 15px rgba(0, 0, 0, 1);
}.none .hljs-comment,
.none .hljs-built_in,
.none .hljs-meta,
.none .hljs-keyword,
.none .hljs-comment,
.none .hljs-string,
.none .hljs-literal,.none .hljs-number { color: transparent;}
let code = document.getElementsByClassName('language-julia')[0];
code.classList.add('none');
code.addEventListener('mouseover', function () {
code.classList.remove('none');
});
code.addEventListener('mouseout', function () {
code.classList.add('none');
}); 就可以实现代码隐藏了,当鼠标没在代码框的时候,是这样的: 问题:
|
单独保持为 format = Documenter.HTML(
prettyurls=get(ENV, "CI", nothing) == "true"),
assets = ["leetcode.css", "leetcode.js"]
) 试试看。 |
我这里是这样做的,也是路径需要调整一下 (我根据 # 1. generate demo files
demopage, postprocess_cb = makedemos("problems")
cp("docs/leetcode.css", "docs/src/democards/problems/leetcode.css")
cp("docs/leetcode.js", "docs/src/democards/problems/leetcode.js")
# 2. normal Documenter usage
format = Documenter.HTML(prettyurls=get(ENV, "CI", nothing) == "true",
assets = ["democards/problems/leetcode.css", "democards/problems/leetcode.js"])
makedocs(format = format,
pages = [
"Home" => "index.md",
demopage,
],
sitename = "LeetCode") 然后在生成的每一个 html 文件里都能找到 |
我试试看~ |
试了一下,确实不行,只能是在 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#36 #42 have brought up the documentation for this repo, which is awesome.
We still have something that needs to do to improve its usability:
The text was updated successfully, but these errors were encountered: