Skip to content

Commit ecfa0f5

Browse files
fix sidebar on mobile
1 parent 37dadb2 commit ecfa0f5

File tree

3 files changed

+57
-14
lines changed

3 files changed

+57
-14
lines changed

dev

100755100644
Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
11
#!/usr/bin/python3
2-
# ./do build
2+
# ./dev build
33
# docker build -t invariant-docs .
4-
# ./do serve
4+
# ./dev up
55
# docker build -t invariant-docs . && docker run -it -p 8000:8000 -e DEV_MODE=true -v .:/docs/ invariant-docs
66

77
import sys
88
import time
99
import subprocess
1010
import webbrowser
1111

12-
if sys.argv[1] == 'build':
13-
print('Building image...')
14-
subprocess.run(['docker', 'build', '-t', 'invariant-docs', '.'])
15-
elif sys.argv[1] == 'serve':
16-
print('Building image...')
17-
p = subprocess.Popen(['docker', 'build', '-t', 'invariant-docs', '.'], stdout=subprocess.PIPE)
12+
if sys.argv[1] == "build":
13+
print("Building image...")
14+
subprocess.run(["docker", "build", "-t", "invariant-docs", "."])
15+
elif sys.argv[1] == "up":
16+
print("Building image...")
17+
p = subprocess.Popen(
18+
["docker", "build", "-t", "invariant-docs", "."], stdout=subprocess.PIPE
19+
)
1820
p.wait()
19-
print('Starting server...')
20-
p = subprocess.Popen("docker run -it -p 8000:8000 -e DEV_MODE=true -v .:/docs/ invariant-docs", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
21+
print("Starting server...")
22+
p = subprocess.Popen(
23+
"docker run -it -p 8000:8000 -e DEV_MODE=true -v .:/docs/ invariant-docs",
24+
shell=True,
25+
stdout=subprocess.PIPE,
26+
stderr=subprocess.PIPE,
27+
)
2128
time.sleep(1)
22-
webbrowser.open('http://localhost:8000')
29+
webbrowser.open("http://localhost:8000")
2330
p.wait()
2431
else:
25-
print('Usage: ./do build | ./do serve')
26-
sys.exit(1)
32+
print("Usage: ./dev build | ./dev up")
33+
sys.exit(1)

docs/assets/invariant.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,10 @@ span.llm::before {
357357
}
358358

359359
label.md-nav__title {
360-
display: none;
360+
img {
361+
display: inline;
362+
}
363+
background-color: blue;
361364
}
362365

363366
.overview {

run

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/python3
2+
# ./do build
3+
# docker build -t invariant-docs .
4+
# ./do serve
5+
# docker build -t invariant-docs . && docker run -it -p 8000:8000 -e DEV_MODE=true -v .:/docs/ invariant-docs
6+
7+
import sys
8+
import time
9+
import subprocess
10+
import webbrowser
11+
12+
if sys.argv[1] == "build":
13+
print("Building image...")
14+
subprocess.run(["docker", "build", "-t", "invariant-docs", "."])
15+
elif sys.argv[1] == "up":
16+
print("Building image...")
17+
p = subprocess.Popen(
18+
["docker", "build", "-t", "invariant-docs", "."], stdout=subprocess.PIPE
19+
)
20+
p.wait()
21+
print("Starting server...")
22+
p = subprocess.Popen(
23+
"docker run -it -p 8000:8000 -e DEV_MODE=true -v .:/docs/ invariant-docs",
24+
shell=True,
25+
stdout=subprocess.PIPE,
26+
stderr=subprocess.PIPE,
27+
)
28+
time.sleep(1)
29+
webbrowser.open("http://localhost:8000")
30+
p.wait()
31+
else:
32+
print("Usage: ./dev build | ./dev up")
33+
sys.exit(1)

0 commit comments

Comments
 (0)