Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: elixir-lang/ex_doc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.30.5
Choose a base ref
...
head repository: elixir-lang/ex_doc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.30.6
Choose a head ref

Commits on Aug 20, 2023

  1. Remove sidebar gradient (#1748)

    It hasn't been visible for a while due to a CSS syntax error,
    so it must not be needed.
    angelikatyborska authored Aug 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d20eb08 View commit details
  2. Update assets

    josevalim authored and github-actions[bot] committed Aug 20, 2023
    Copy the full SHA
    77b3a12 View commit details
  3. Copy the full SHA
    7abeb25 View commit details
  4. Copy the full SHA
    9292213 View commit details
  5. Copy the full SHA
    2b7304a View commit details
  6. Copy the full SHA
    dd0fc3c View commit details
  7. Copy the full SHA
    b4a65ee View commit details
  8. Copy the full SHA
    9065428 View commit details
  9. Copy the full SHA
    115ad01 View commit details
  10. Copy the full SHA
    db99325 View commit details
  11. Comment focus approach

    angelikatyborska authored and josevalim committed Aug 20, 2023
    Copy the full SHA
    c010ffd View commit details
  12. Update assets

    josevalim authored and github-actions[bot] committed Aug 20, 2023
    Copy the full SHA
    7bad4fa View commit details

Commits on Aug 21, 2023

  1. Add link headings to epub

    josevalim committed Aug 21, 2023
    Copy the full SHA
    25329b5 View commit details

Commits on Aug 22, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7612584 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c4ef075 View commit details
  3. Update assets

    josevalim authored and github-actions[bot] committed Aug 22, 2023
    Copy the full SHA
    53beba7 View commit details
  4. Keep cheatsheet h3 color

    josevalim committed Aug 22, 2023
    Copy the full SHA
    6af8835 View commit details
  5. Revert "Revert hover link approach to fix markup of headings containi…

    …ng links (#1752)"
    
    This reverts commit c4ef075.
    josevalim committed Aug 22, 2023
    Copy the full SHA
    c4b3e00 View commit details
  6. Copy the full SHA
    f165492 View commit details
  7. Update assets

    josevalim authored and github-actions[bot] committed Aug 22, 2023
    Copy the full SHA
    c4aaf36 View commit details
  8. Copy the full SHA
    4928aa8 View commit details
  9. Remove unecessary css

    josevalim committed Aug 22, 2023
    Copy the full SHA
    1c85e72 View commit details
  10. Update assets

    josevalim authored and github-actions[bot] committed Aug 22, 2023
    Copy the full SHA
    f63316e View commit details
  11. Copy the full SHA
    32bb4ff View commit details
  12. Copy the full SHA
    67af3be View commit details
  13. Update assets

    josevalim authored and github-actions[bot] committed Aug 22, 2023
    Copy the full SHA
    4628900 View commit details

Commits on Aug 25, 2023

  1. Copy the full SHA
    c47807c View commit details
  2. Release v0.30.6

    josevalim committed Aug 25, 2023
    Copy the full SHA
    48949c5 View commit details
Showing with 263 additions and 175 deletions.
  1. +6 −0 CHANGELOG.md
  2. +1 −0 assets/css/_html.css
  3. +1 −0 assets/css/content/admonition.css
  4. +18 −14 assets/css/content/cheatsheet.css
  5. +0 −1 assets/css/content/footer.css
  6. +2 −1 assets/css/content/functions.css
  7. +0 −6 assets/css/content/general.css
  8. +14 −9 assets/css/copy-button.css
  9. +0 −2 assets/css/custom-props/theme-dark.css
  10. +0 −2 assets/css/custom-props/theme-light.css
  11. +41 −0 assets/css/focus.css
  12. +27 −14 assets/css/layout.css
  13. +0 −4 assets/css/quick-switch.css
  14. +13 −5 assets/css/settings.css
  15. +43 −47 assets/css/sidebar.css
  16. +7 −6 assets/js/handlebars/templates/sidebar-items.handlebars
  17. +28 −12 assets/js/sidebar/sidebar-drawer.js
  18. +8 −7 assets/js/sidebar/sidebar-list.js
  19. +0 −1 formatters/epub/dist/epub-elixir-I6JWQIC2.css
  20. +1 −0 formatters/epub/dist/epub-elixir-OAJBJGFQ.css
  21. +1 −0 formatters/epub/dist/epub-erlang-GOUKTTJJ.css
  22. +0 −1 formatters/epub/dist/epub-erlang-ULTKZ6EK.css
  23. +16 −15 formatters/html/dist/{handlebars.templates-NBND3S2D.js → handlebars.templates-KDPBTEPL.js}
  24. +2 −2 formatters/html/dist/{html-B3DGGEY7.js → html-CP2A7WXZ.js}
  25. +6 −0 formatters/html/dist/html-elixir-M3TQBNKO.css
  26. +0 −6 formatters/html/dist/html-elixir-WZEKIBKB.css
  27. +0 −6 formatters/html/dist/html-erlang-6R3HDDY5.css
  28. +6 −0 formatters/html/dist/html-erlang-TA2NZFJE.css
  29. +3 −7 lib/ex_doc/doc_ast.ex
  30. +1 −1 lib/ex_doc/formatter/epub/templates/extra_template.eex
  31. +1 −1 lib/ex_doc/formatter/epub/templates/module_template.eex
  32. +5 −2 lib/ex_doc/formatter/html/templates.ex
  33. +0 −1 lib/ex_doc/formatter/html/templates/sidebar_template.eex
  34. +1 −1 mix.exs
  35. +6 −0 test/ex_doc/formatter/epub/templates_test.exs
  36. +2 −0 test/ex_doc/formatter/html_test.exs
  37. +3 −1 test/fixtures/LivebookFile.livemd
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v0.30.6 (2023-08-25)

* Enhancements
* Extract title from Markdown file when preceeded with comments
* Improve focus navigation in notebooks

## v0.30.5 (2023-08-12)

* Bug fixes
1 change: 1 addition & 0 deletions assets/css/_html.css
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@
@import 'icons.css';
@import 'layout.css';
@import 'sidebar.css';
@import 'focus.css';
@import 'content/general.css';
@import 'content/admonition.css';
@import 'content/summary.css';
1 change: 1 addition & 0 deletions assets/css/content/admonition.css
Original file line number Diff line number Diff line change
@@ -108,6 +108,7 @@

.content-inner blockquote :is(h3, h4):is(.warning, .error, .info, .neutral, .tip) :is(a, a:visited) {
color: inherit;
text-decoration-color: currentColor;
}

@media screen and (max-width: 768px) {
32 changes: 18 additions & 14 deletions assets/css/content/cheatsheet.css
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
@media (max-width: 600px) {
.page-cheatmd .content-inner {
--horizontal-space: 1em;
--vertical-space: .75em;
--vertical-space: 0.75em;
}
}

@@ -36,22 +36,25 @@
/* h3 */

.page-cheatmd .content-inner h3 {
color: var(--main);
margin: 0 0 1em;
font-weight: 400;
overflow: hidden;
}

.page-cheatmd .content-inner h3 a {
.page-cheatmd .content-inner h3 :is(a, a:visited) {
color: var(--main);
text-decoration: none;
}

.page-cheatmd .content-inner h3.section-heading a.hover-link {
.page-cheatmd .content-inner h3.section-heading i {
display: none;
}

.page-cheatmd .content-inner section.h3 {
min-width: 300px;
margin: 0 0 calc(var(--vertical-space) * 2) 0;
margin: 0;
padding: 0 0 calc(var(--vertical-space) * 2) 0;
break-inside: avoid;
}

@@ -72,7 +75,7 @@
.page-cheatmd .content-inner h4 {
display: block;
margin: 0;
padding: .25em var(--horizontal-space);
padding: 0.25em var(--horizontal-space);
font-weight: 400;
background: var(--gray100);
color: #567;
@@ -102,7 +105,7 @@
.page-cheatmd .content-inner .h2 p > code {
color: #eb5757;
border-radius: var(--borderRadius);
padding: .2em .4em;
padding: 0.2em 0.4em;
}

/* Code blocks */
@@ -112,8 +115,8 @@
}

.page-cheatmd .content-inner pre code::-webkit-scrollbar {
width: .4rem;
height: .6rem;
width: 0.4rem;
height: 0.6rem;
}

.page-cheatmd .content-inner .h2 pre {
@@ -166,7 +169,7 @@
.page-cheatmd .content-inner .h2 td code {
color: #eb5757;
border-radius: var(--borderRadius);
padding: .2em .4em;
padding: 0.2em 0.4em;
}

.page-cheatmd .content-inner .h2 thead {
@@ -190,7 +193,7 @@

.page-cheatmd .content-inner .h2 li {
list-style-position: inside;
padding: .5em var(--horizontal-space);
padding: 0.5em var(--horizontal-space);
line-height: 2em;
vertical-align: middle;
background-color: var(--codeBackground);
@@ -204,7 +207,7 @@
.page-cheatmd .content-inner .h2 li > code {
color: #eb5757;
border-radius: var(--borderRadius);
padding: .2em .4em;
padding: 0.2em 0.4em;
}

/* Columns */
@@ -268,14 +271,15 @@
}

.page-cheatmd .content-inner section.col-2-left {
display: block;
column-count: 1;
display: flex;
flex-direction: column;
}
}

@media screen and (max-width: 1200px) {
.page-cheatmd .content-inner section:is(.col-2, .col-3) {
column-count: 1;
display: flex;
flex-direction: column;
}

.page-cheatmd .content-inner section.list-6 > ul > li {
1 change: 0 additions & 1 deletion assets/css/content/footer.css
Original file line number Diff line number Diff line change
@@ -19,7 +19,6 @@
border: 0;
cursor: pointer;
font-style: italic;
outline: none;
padding: 0 4px;
}

3 changes: 2 additions & 1 deletion assets/css/content/functions.css
Original file line number Diff line number Diff line change
@@ -35,7 +35,8 @@
font-weight: 700;
}

.content-inner .detail-header:hover a.detail-link {
.content-inner .detail-header:hover a.detail-link,
.content-inner .detail-header a.detail-link:focus {
opacity: 1;
text-decoration: none;
}
6 changes: 0 additions & 6 deletions assets/css/content/general.css
Original file line number Diff line number Diff line change
@@ -132,13 +132,7 @@
}

.content-inner .section-heading a {
color: var(--links);
text-decoration: none;
display: inline-block;
}

.content-inner .section-heading a.no-underline {
color: var(--links);
}

.content-inner .section-heading i {
23 changes: 14 additions & 9 deletions assets/css/copy-button.css
Original file line number Diff line number Diff line change
@@ -2,28 +2,33 @@ pre {
position: relative;
}

pre:hover .copy-button {
display: block;
pre:hover .copy-button, pre .copy-button:focus {
opacity: 1;
}

.copy-button {
display: none;
display: flex;
opacity: 0;
position: absolute;
top: 9px;
right: 9px;
background-color: transparent;
top: 5px;
right: 5px;
padding: 4px;
background-color: var(--codeBackground);
border: none;
cursor: pointer;
padding: 0;
opacity: .5;
transition: all 150ms;
font-family: var(--serifFontFamily);
font-size: 14px;
line-height: 24px;
color: currentColor;
}

.copy-button:hover {
.copy-button svg {
opacity: .5;
transition: all 150ms;
}

pre .copy-button:hover svg, pre .copy-button:focus-visible svg {
opacity: 1;
}

2 changes: 0 additions & 2 deletions assets/css/custom-props/theme-dark.css
Original file line number Diff line number Diff line change
@@ -75,8 +75,6 @@ body.dark {
var(--gray900-opacity-0) 100%);
--sidebarAccentMain: var(--gray50);
--sidebarBackground: var(--gray800);
--sidebarGradient: linear-gradient(var(--sidebarBackground),
var(gray800-opacity-0));
--sidebarHeader: var(--gray700);
--sidebarMuted: var(--gray300);
--sidebarHover: var(--white);
2 changes: 0 additions & 2 deletions assets/css/custom-props/theme-light.css
Original file line number Diff line number Diff line change
@@ -75,8 +75,6 @@
var(--white-opacity-0) 100%);
--sidebarAccentMain: var(--gray50);
--sidebarBackground: var(--gray800);
--sidebarGradient: linear-gradient(var(--sidebarBackground),
var(gray800-opacity-0));
--sidebarHeader: var(--gray700);
--sidebarMuted: var(--gray300);
--sidebarHover: var(--white);
41 changes: 41 additions & 0 deletions assets/css/focus.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/* For backwards compatibility, style :focus state so that it works in all browsers,
but unstyle not-focus-visible focus state in browsers that support focus-visible */

/* extra button selectors necessary to overwrite normalize.css */
*:focus,
button:focus,
[type="button"]:focus,
[type="reset"]:focus,
[type="submit"]:focus {
outline: 2px solid var(--main);
/* negative offset to make outline visible when overflow hidden */
outline-offset: -2px;
}

*:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[type="button"]:focus:not(:focus-visible),
[type="reset"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible) {
outline: 0;
}

/* inputs you can type into don't need an extra focus style
because they have a visible cursor */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
input[type="week"],
textarea {
outline: 0;
}
41 changes: 27 additions & 14 deletions assets/css/layout.css
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@ body {
}

body {
--sidebarWidth: 300px;
--sidebarTransitionDuration: .3s;
background-color: var(--background);
color: var(--textBody);
font-size: 16px;
@@ -28,7 +30,7 @@ body {
.sidebar {
display: flex;
flex-direction: column;
width: 300px;
width: var(--sidebarWidth);
height: 100%;
position: fixed;
top: 0;
@@ -38,17 +40,18 @@ body {

.sidebar-button {
--sidebarButtonTopOpen: 6px;
--sidebarButtonRightOpen: 7px;
position: fixed;
z-index: 99;
left: 0;
top: 0;
transition: all .3s ease-in-out;
transition: all var(--sidebarTransitionDuration) ease-in-out;
will-change: transform;
}

.content {
width: calc(100% - 300px);
left: 300px;
width: calc(100% - var(--sidebarWidth));
left: var(--sidebarWidth);
height: 100%;
position: absolute;
z-index: 3;
@@ -62,38 +65,48 @@ body {
}

body:is(.sidebar-opening, .sidebar-opened) .sidebar-button {
transform: translateX(250px);
transform: translateX(calc(var(--sidebarWidth) - 100% - var(--sidebarButtonRightOpen)));
top: var(--sidebarButtonTopOpen);
}

body.sidebar-opening-start .sidebar {
left: calc(-1 * var(--sidebarWidth));
}

body.sidebar-opening-start .content {
width: 100%;
left: 0;
}

body.sidebar-opening .sidebar {
left: 0;
transition: left .3s ease-in-out;
transition: left var(--sidebarTransitionDuration) ease-in-out;
}

body.sidebar-opening .content {
width: calc(100% - 300px);
left: 300px;
transition: all .3s ease-in-out;
width: calc(100% - var(--sidebarWidth));
left: var(--sidebarWidth);
transition: all var(--sidebarTransitionDuration) ease-in-out;
}

body.sidebar-closing .sidebar-button {
transform: translateX(0);
}

body.sidebar-closing .sidebar {
left: -300px;
transition: left .3s ease-in-out;
left: calc(-1 * var(--sidebarWidth));
transition: left var(--sidebarTransitionDuration) ease-in-out;
}

body.sidebar-closing .content {
width: 100%;
left: 0;
transition: all .3s ease-in-out;
transition: all var(--sidebarTransitionDuration) ease-in-out;
}

body.sidebar-closed .sidebar {
left: -300px;
left: calc(-1 * var(--sidebarWidth));
display: none;
}

body.sidebar-closed .content {
@@ -114,7 +127,7 @@ body.sidebar-closed .content {
height: var(--sidebarButtonHeight);
width: calc(100vw + 2px);
background: var(--sidebarButtonBackground);
transition: top .3s ease-in-out;
transition: top var(--sidebarTransitionDuration) ease-in-out;
}

body:is(.sidebar-closed, .sidebar-closing) .sidebar-button:before {
4 changes: 0 additions & 4 deletions assets/css/quick-switch.css
Original file line number Diff line number Diff line change
@@ -23,10 +23,6 @@
transition: all .12s ease-out;
}

#quick-switch-modal-body #quick-switch-input:focus {
outline: none;
}

#quick-switch-modal-body #quick-switch-results {
margin: 0;
}
Loading