Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

fix: improve styling and performance for interactive docs #4033

Merged
merged 95 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
60ed9bb
load ganache with cdn
MicaiahReid Dec 6, 2022
1dbc8f4
set up IntersectionalObserver to load editor as it becomes visible
MicaiahReid Dec 6, 2022
d184d98
fix some styles
MicaiahReid Dec 6, 2022
b2f2501
change order of hiding/unhiding elements
MicaiahReid Dec 8, 2022
6c8d479
add missing truffle colors
MicaiahReid Dec 8, 2022
653478b
define ganache-colors monaco theme
MicaiahReid Dec 8, 2022
d614890
upgrade monaco
MicaiahReid Dec 8, 2022
64db000
fix line-height formula
MicaiahReid Dec 8, 2022
c2fe85b
little bita css
MicaiahReid Dec 8, 2022
2fd6a0a
fix evm_removeAccount docs example
MicaiahReid Dec 8, 2022
41518be
fix web3_sha3 docs example
MicaiahReid Dec 8, 2022
9add487
fix eth_sendRawTransaction docs example
MicaiahReid Dec 8, 2022
8f9dbad
fix personal_sendTransaction docs example
MicaiahReid Dec 8, 2022
22f54c1
fix txpool_content docs example
MicaiahReid Dec 8, 2022
1af1566
update custom theme
MicaiahReid Dec 9, 2022
4a801db
load editor above and below intersected element
MicaiahReid Dec 9, 2022
5acaeab
add preamble
MicaiahReid Dec 9, 2022
ffad48a
some css
MicaiahReid Dec 9, 2022
b2b18f4
add category tag to api docs
MicaiahReid Dec 9, 2022
ea9469f
group navbar by category
MicaiahReid Dec 9, 2022
7105994
fix sidebar spacing
MicaiahReid Dec 9, 2022
dc3e4d2
fix source code links
MicaiahReid Dec 9, 2022
b88819a
fix docs builder to not use typedoc category
MicaiahReid Dec 12, 2022
d631679
fix evm_setTime example
MicaiahReid Dec 12, 2022
73d0969
remove category tags
MicaiahReid Dec 12, 2022
a7284e9
styling things
MicaiahReid Dec 12, 2022
635d69b
add in some logos
MicaiahReid Dec 12, 2022
545b78b
fix editor spacings
MicaiahReid Dec 12, 2022
c48c678
point to commit hash
MicaiahReid Dec 14, 2022
d93cbd1
remove CI check. add try/catch
MicaiahReid Dec 14, 2022
860299d
change var name
MicaiahReid Dec 14, 2022
1671e5c
fix casing
MicaiahReid Dec 14, 2022
f1abe3b
remove logging
MicaiahReid Dec 14, 2022
a74b6de
rename logs to ganache logs
MicaiahReid Dec 14, 2022
162d5e7
remove newline char in function return types (regex)
MicaiahReid Dec 14, 2022
47cdaa7
remove logging
MicaiahReid Dec 14, 2022
b0dd583
use latest ganache version
MicaiahReid Dec 14, 2022
0022402
add chevron/styling to sidebar links
MicaiahReid Dec 14, 2022
7731d58
fix sidebar formatting
MicaiahReid Dec 14, 2022
b5ddce3
add better/more robust css for light theme
MicaiahReid Dec 14, 2022
0534c9f
fix/format main ganache link
MicaiahReid Dec 14, 2022
7f9a712
add header action buttons
MicaiahReid Dec 14, 2022
c976748
change color themes onclick of button
MicaiahReid Dec 14, 2022
8164fc1
position sandwich button
MicaiahReid Dec 14, 2022
b0c2f45
add js for switching color themes
MicaiahReid Dec 14, 2022
a7b20c6
position button
MicaiahReid Dec 14, 2022
d0d4247
link to github readme
MicaiahReid Dec 14, 2022
c917521
add titles to links/alts to imgs
MicaiahReid Dec 14, 2022
bacb7d0
remove provider.once("message") from api examples
MicaiahReid Dec 14, 2022
0c9e2dc
update readmes
MicaiahReid Dec 14, 2022
dbd0252
disable context menu
MicaiahReid Dec 14, 2022
c10af97
allow theme switching with js disabled
MicaiahReid Dec 15, 2022
8b44b64
format inline code
MicaiahReid Dec 15, 2022
fb48741
format summa them there es vee jeez
MicaiahReid Dec 22, 2022
ce5cc3d
fix color switcher button
MicaiahReid Dec 22, 2022
9dfac27
make preload script
MicaiahReid Dec 22, 2022
9e43aa0
rename variable
MicaiahReid Dec 22, 2022
12aa09d
fix some accessibility
MicaiahReid Dec 22, 2022
57c0d82
fix moon svg
MicaiahReid Dec 22, 2022
9731496
reformat css
MicaiahReid Dec 22, 2022
57fd279
update color themes
MicaiahReid Dec 22, 2022
b5f302a
fix inline code styling
MicaiahReid Dec 22, 2022
69a3a5b
space out consoles a bit
MicaiahReid Dec 22, 2022
cf8fe21
make preload happen early
MicaiahReid Dec 22, 2022
56fa86d
fix some css I think?
MicaiahReid Dec 22, 2022
adcca91
update build
davidmurdoch Jan 18, 2023
3aa067c
fix toBuffer in build
davidmurdoch Jan 31, 2023
51e6efd
polish and perf
davidmurdoch Feb 25, 2023
4b08e9c
make squircle work
davidmurdoch Feb 26, 2023
1d352bd
add mobile support
davidmurdoch Feb 27, 2023
1774e1c
don't add line under ganache logo link on focus
davidmurdoch Feb 27, 2023
2e3eb29
style tweaks
davidmurdoch Feb 27, 2023
b0ee4b2
lazy load ganache
davidmurdoch Feb 27, 2023
11ed614
update require.js
davidmurdoch Feb 28, 2023
571d546
oops
davidmurdoch Feb 28, 2023
f5bc8b4
package lock fix
davidmurdoch Feb 28, 2023
9149540
more tweaks
davidmurdoch Feb 28, 2023
6eb3e42
only do as much as is needed
davidmurdoch Feb 28, 2023
11fc8f2
docs
davidmurdoch Feb 28, 2023
9a4815e
docs again
davidmurdoch Feb 28, 2023
e5ed06f
docs: add console.log to all solidity examples in interactive docs (#…
MicaiahReid Mar 1, 2023
23ffbbd
lock file
davidmurdoch Mar 1, 2023
abbb3af
Merge branch 'develop' into docs-perf
davidmurdoch Mar 1, 2023
701ea06
build
davidmurdoch Mar 1, 2023
b5862e8
build docs
davidmurdoch Mar 1, 2023
aae1148
fix edge case
davidmurdoch Mar 1, 2023
1a88df5
Merge branch 'develop' into docs-perf
davidmurdoch Mar 7, 2023
ec049f6
fix unscrollable
davidmurdoch Mar 7, 2023
d42051b
! to .
davidmurdoch Mar 7, 2023
235967b
Create CNAME
davidmurdoch Mar 9, 2023
6b61610
Delete CNAME
davidmurdoch Mar 9, 2023
dbd7392
update links to new home
davidmurdoch Mar 9, 2023
0977c27
add robots.txt
davidmurdoch Mar 9, 2023
c77c6d6
add a 404 page
davidmurdoch Mar 9, 2023
c80c979
add link to help
davidmurdoch Mar 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>404 Page Not Found · Ganache</title>
</head>

<body>
<h1>404 Page Not Found</h1>
</body>

</html>
30 changes: 13 additions & 17 deletions docs/assets/css/highlight-truffle.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
top: 0;
border-radius: 10%/40%;
font-size: 0.8em;
background: var(--dark-porsche);
background: var(--editor-text-8);
font-family: "Open sans";
transform: translate(-3vw, calc(-100% + 3.05vw));
padding: 0.5vw 1vw 3vw;
Expand All @@ -55,7 +55,7 @@
.code pre {
overflow: hidden;
border-radius: 5%/50%;
border: solid var(--dark-porsche);
border: solid var(--editor-text-8);
border-width: 0 0.5vw;

box-shadow: 0 5px 50px rgba(0, 0, 0, 0.2), 0 -1px 1px rgba(224, 191, 168, 1),
Expand All @@ -76,7 +76,7 @@
background: var(--dark-chocolate);
color: var(--very-light-porsche);
border-radius: 50%/5%;
border: solid var(--dark-porsche);
border: solid var(--editor-text-8);
border-width: 0.5vw 0;
position: relative;
transition: box-shadow 3s ease-in-out;
Expand All @@ -91,64 +91,60 @@
.hljs-comment,
.hljs-quote,
.hljs-meta {
color: var(--light-pink);
color: var(--editor-text-9);
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-tag,
.hljs-name {
color: var(--porsche);
color: var(--editor-text-6);
}

.hljs-attr,
.hljs-attribute,
.hljs-selector-id {
color: var(--light-turquoise);
color: var(--body-text);
}

.hljs-string,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-addition {
color: var(--dark-turquoise);
color: var(--editor-text-4);
}

.hljs-subst {
color: var(--turquoise);
color: var(--editor-text-2);
}

.hljs-regexp,
.hljs-link {
color: var(--medium-dark-porsche);
color: var(--editor-text-7);
}

.hljs-title,
.hljs-section,
.hljs-type,
.hljs-doctag {
color: var(--light-turquoise);
}

.hljs-built_in {
color: var(--medium-dark-turquoise);
color: var(--editor-text-1);
}

.hljs-symbol,
.hljs-bullet,
.hljs-variable,
.hljs-template-variable,
.hljs-literal {
color: var(--light-pink);
color: var(--editor-text-9);
}

.hljs-params {
color: var(--light-porsche);
color: var(--editor-text-5);
}

.hljs-number,
.hljs-deletion {
color: var(--pink);
color: var(--editor-text-10);
}

.hljs-emphasis {
Expand Down
Loading