Skip to content

Commit

Permalink
Latest build deployed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Lubliner committed Mar 26, 2024
1 parent bdfdea7 commit b047e3c
Show file tree
Hide file tree
Showing 61 changed files with 423 additions and 2,112 deletions.
2 changes: 1 addition & 1 deletion .mapping.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"source/main.ptx": ["Discrete-Math-with-SageMath"], "source/frontmatter.ptx": ["frontmatter"], "source/getting-started/ch-getting-started.ptx": ["ch-getting-started"], "source/getting-started/sec-intro-to-sage.ptx": ["about-sage"], "source/getting-started/sec-displaying.ptx": ["displaying"], "source/getting-started/sec-OOP.ptx": ["OOP"], "source/getting-started/sec-data-types.ptx": ["data-types"], "source/getting-started/sec-iteration.ptx": ["iteration"], "source/getting-started/sec-debugging.ptx": ["debugging"], "source/getting-started/sec-documentation.ptx": ["documentation"], "source/getting-started/sec-sage-browser.ptx": ["sage-browser"], "source/set-theory/ch-set-theory.ptx": ["ch-set-theory"], "source/set-theory/sec-creating-sets.ptx": ["creating-sets"], "source/set-theory/sec-cardinality.ptx": ["cardinality"], "source/set-theory/sec-operation-on-sets.ptx": ["sec-operation-on-sets"], "source/combinatorics/ch-combinatorics.ptx": ["ch-combinatorics"], "source/combinatorics/sec-combinatorics.ptx": ["sec-combinatorics"], "source/logic/ch-logic.ptx": ["ch-logic"], "source/logic/sec-logical-operation.ptx": ["sec-logical-operation"], "source/logic/sec-truth-table.ptx": ["sec-truth-table"], "source/logic/sec-tautology.ptx": ["sec-tautology"], "source/relations/ch-relations.ptx": ["ch-relations"], "source/relations/sec-intro-relations.ptx": ["intro-relations"], "source/relations/sec-relations-on-a-set.ptx": ["relations-on-a-set"], "source/relations/sec-digraphs.ptx": ["digraphs"], "source/relations/sec-properties.ptx": ["properties"], "source/relations/sec-equivalence.ptx": ["equivalence"], "source/relations/sec-partial-order.ptx": ["partial-order"], "source/functions/ch-functions.ptx": ["ch-functions"], "source/functions/sec-functions.ptx": ["sec-functions"], "source/functions/sec-recursion.ptx": ["sec-recursion"], "source/graph-theory/ch-graph-theory.ptx": ["ch-graph-theory"], "source/graph-theory/sec-basics.ptx": ["sec-basics"], "source/graph-theory/sec-plot-options.ptx": ["sec-plot-options"], "source/graph-theory/sec-paths.ptx": ["paths"], "source/graph-theory/sec-isomorphism.ptx": ["isomorphism"], "source/graph-theory/sec-euler-and-hamilton.ptx": ["euler-and-hamilton"], "source/graph-theory/sec-search-algorithm.ptx": ["search-algorithm"], "source/trees/ch-trees.ptx": ["ch-trees"], "source/trees/sec-definitions-and-theorems.ptx": ["definitions-and-theorems"], "source/trees/sec-search-algorithms.ptx": ["search-algorithms"], "source/backmatter.ptx": ["backmatter"]}
{"source/main.ptx": ["Discrete-Math-with-SageMath"], "source/frontmatter.ptx": ["frontmatter"], "source/getting-started/ch-getting-started.ptx": ["ch-getting-started"], "source/getting-started/sec-intro-to-sage.ptx": ["about-sage"], "source/getting-started/sec-displaying.ptx": ["displaying"], "source/getting-started/sec-OOP.ptx": ["OOP"], "source/getting-started/sec-data-types.ptx": ["data-types"], "source/getting-started/sec-iteration.ptx": ["iteration"], "source/getting-started/sec-debugging.ptx": ["debugging"], "source/getting-started/sec-defining-functions.ptx": ["defining-functions"], "source/getting-started/sec-documentation.ptx": ["documentation"], "source/getting-started/sec-sage-browser.ptx": ["sage-browser"], "source/set-theory/ch-set-theory.ptx": ["ch-set-theory"], "source/set-theory/sec-creating-sets.ptx": ["creating-sets"], "source/set-theory/sec-cardinality.ptx": ["cardinality"], "source/set-theory/sec-operation-on-sets.ptx": ["sec-operation-on-sets"], "source/combinatorics/ch-combinatorics.ptx": ["ch-combinatorics"], "source/combinatorics/sec-combinatorics.ptx": ["sec-combinatorics"], "source/logic/ch-logic.ptx": ["ch-logic"], "source/logic/sec-logical-operation.ptx": ["sec-logical-operation"], "source/logic/sec-truth-table.ptx": ["sec-truth-table"], "source/logic/sec-tautology.ptx": ["sec-tautology"], "source/relations/ch-relations.ptx": ["ch-relations"], "source/relations/sec-intro-relations.ptx": ["intro-relations"], "source/relations/sec-relations-on-a-set.ptx": ["relations-on-a-set"], "source/relations/sec-digraphs.ptx": ["digraphs"], "source/relations/sec-properties.ptx": ["properties"], "source/relations/sec-equivalence.ptx": ["equivalence"], "source/relations/sec-partial-order.ptx": ["partial-order"], "source/functions/ch-functions.ptx": ["ch-functions"], "source/functions/sec-functions.ptx": ["sec-functions"], "source/functions/sec-recursion.ptx": ["sec-recursion"], "source/graph-theory/ch-graph-theory.ptx": ["ch-graph-theory"], "source/graph-theory/sec-basics.ptx": ["sec-basics"], "source/graph-theory/sec-plot-options.ptx": ["sec-plot-options"], "source/graph-theory/sec-paths.ptx": ["paths"], "source/graph-theory/sec-isomorphism.ptx": ["isomorphism"], "source/graph-theory/sec-euler-and-hamilton.ptx": ["euler-and-hamilton"], "source/graph-theory/sec-search-algorithm.ptx": ["search-algorithm"], "source/trees/ch-trees.ptx": ["ch-trees"], "source/trees/sec-definitions-and-theorems.ptx": ["definitions-and-theorems"], "source/trees/sec-search-algorithms.ptx": ["search-algorithms"], "source/backmatter.ptx": ["backmatter"]}
5 changes: 3 additions & 2 deletions Discrete-Math-with-SageMath.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ <h2 class="search-results-heading">Search Results: </h2>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="data-types.html" class="internal"><span class="codenumber">1.4</span> <span class="title">Data Types</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="iteration.html" class="internal"><span class="codenumber">1.5</span> <span class="title">Iteration</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="debugging.html" class="internal"><span class="codenumber">1.6</span> <span class="title">Debugging</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="documentation.html" class="internal"><span class="codenumber">1.7</span> <span class="title">Documentation</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="sage-browser.html" class="internal"><span class="codenumber">1.8</span> <span class="title">Run Sage in the browser</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="defining-functions.html" class="internal"><span class="codenumber">1.7</span> <span class="title">Defining Functions</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="documentation.html" class="internal"><span class="codenumber">1.8</span> <span class="title">Documentation</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="sage-browser.html" class="internal"><span class="codenumber">1.9</span> <span class="title">Run Sage in the browser</span></a></div></li>
</ul>
</li>
<li class="toc-item toc-chapter">
Expand Down
5 changes: 3 additions & 2 deletions OOP.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ <h2 class="search-results-heading">Search Results: </h2>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="data-types.html" class="internal"><span class="codenumber">1.4</span> <span class="title">Data Types</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="iteration.html" class="internal"><span class="codenumber">1.5</span> <span class="title">Iteration</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="debugging.html" class="internal"><span class="codenumber">1.6</span> <span class="title">Debugging</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="documentation.html" class="internal"><span class="codenumber">1.7</span> <span class="title">Documentation</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="sage-browser.html" class="internal"><span class="codenumber">1.8</span> <span class="title">Run Sage in the browser</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="defining-functions.html" class="internal"><span class="codenumber">1.7</span> <span class="title">Defining Functions</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="documentation.html" class="internal"><span class="codenumber">1.8</span> <span class="title">Documentation</span></a></div></li>
<li class="toc-item toc-section"><div class="toc-title-box"><a href="sage-browser.html" class="internal"><span class="codenumber">1.9</span> <span class="title">Run Sage in the browser</span></a></div></li>
</ul>
</li>
<li class="toc-item toc-chapter">
Expand Down
249 changes: 46 additions & 203 deletions _static/pretext/css/knowls_default.css
Original file line number Diff line number Diff line change
@@ -1,230 +1,73 @@
/*
main knowls style
main knowls styles
*/

[data-knowl] {
display: inline;
position: relative;
.knowl__link {
cursor: pointer;
color: #9c2310;
padding: 0px 2px 0px 2px;
margin: 0;
text-decoration: none;
margin-bottom: 1px;
/*
margin-bottom: 0;
*/
font-weight: 500;
white-space: nowrap;
border-bottom: none;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
transition-property: background-color;
transition-duration: 0ms;
}
table [data-knowl] {
white-space: pre-line;
}

[data-knowl]:hover, [data-knowl]:active, [data-knowl].active {
color: #8a1200;
background: #ffedeb;
/*
margin-bottom: 0;
*/
border-bottom: none;
}

[data-knowl]::after, [data-knowl]:hover::after, [data-knowl].active::after {
content: "";
position: absolute;
top: 0;
bottom: 1px;
right: 2.4px;
left: 2.4px;
border-bottom: 1px dotted #9c2310;
transition-property: left, right;
transition-duration: 0ms;
z-index: 0;
}
/* is the next only for a proof or other content that is only a knowl? */
article > [data-knowl]::after, article > [data-knowl]:hover::after, article > [data-knowl].active::after,
section > details > summary > .heading, article + details > summary > .heading {
content: "";
position: absolute;
top: 0;
bottom: 1px;
right: 8.4px;
right: 0.6em;
left: 2.4px;
border-bottom: 1px dotted #9c2310;
transition-property: left, right;
transition-duration: 0ms;
z-index: 0;
}

[data-knowl].fn-knowl {
padding-left: 0;
padding-right: 0;
margin-right: 2px;
}
[data-knowl].fn-knowl::after {
bottom: 7px;
}

.knowl-error {
color: red;
border-bottom: 0;
}
.knowl-output {
background: #f5f5ff;
border: 10px solid #ddf;
border-radius: 10px;
padding: 0;
margin-top: 10px;
scroll-margin-top: 60px; /* height of header */
}

.knowl-output.original {
background: #f8f8f8;
border: none;
/* border-left: 1px solid #666;
*/
border-radius: 0;
padding: 0;
margin-top: 10px;
}
.knowl-output.original .knowl-content {
padding-top: 0;
padding-bottom: 0;
margin-bottom: 0;
}
/*
.knowl-output.original:after {
content: '';
display: block;
padding-top: 0.35em;
}
*/
.example-like .knowl-output.original {
background: inherit;
margin-left: 0.1em;
margin-right: 0.1em;
color: var(--knowlLinkColor);
border-bottom: 1px dotted var(--knowlLinkColor);
}

.knowl-output--hide {
display: none;
summary.knowl__link {
display: list-item inline;
}

.knowl-output__error .para:first-child {
margin-top: 0;
}

.knowl-output__error a {
text-decoration: underline;
.knowl__link > * {
display: inline;
}

.knowl-output .knowl-output {
border-width: 6px;
background: #fffff5;
border-radius: 4px;
margin-bottom: -3px;
margin-left: -7px;
margin-right: -7px;
}
.knowl-output .knowl-output .knowl-output {
background: #fff5ff;
}
.knowl-output .knowl-output .knowl-output .knowl-output {
background: #fafffa;
}
.knowl-footer {
position: relative;
bottom: -9px;
font-size: x-small;
background: #ddf;
color: grey;
padding: 0 0 0 12px;
margin: -10px 0 0 0;
}
.knowl-footer a {
color: #006;
}
.knowl-footer a:hover {
background: none;
color: #88f;
}
/* .knowl-footer:after {
content: "\2002";
} */

.knowl-output .knowl-output .knowl-footer {
bottom: -5px;
margin: -5px 0 0 0;
.knowl__link:is(:hover, :focus, [open]) {
background-color: var(--knowlbackground);
border-bottom-color: transparent;
}

.knowl-output + .knowl-output {
margin-top: 0;
}
.knowl-output + .knowl-output.original {
margin-top: 0.5em;
}
.knowl-content {
padding: 10px;
padding-bottom: 7px;
}
.knowl-content > *:first-child {
margin-top: 0;
.knowl__content {
margin: 0.2em;
border: 6px solid var(--knowlborder);
border-radius: 0.4em;
padding: 0.8em;
background-color: var(--knowlbackground);
}

/* sort of a hack for proof knows in theorem knowls */
.ptx-content div.knowl .posterior a[data-knowl]:first-child {
padding: 0;
}

/* not sure where this was being used, but it made short knowls
* look bad, like the hint here:
* SAFurtherReading.html
*/
.ptx-content .knowl-output .knowl-content > *:last-child:not(.incontext) {
margin-bottom: 0.5em;
}

/* No Greg's L in knowls, to save space */

.ptx-content .knowl-content > article.theorem-like,
.ptx-content .knowl-content > article.definition-like,
.ptx-content .knowl-content > article.example-like,
.ptx-content .knowl-content > article.project-like,
.ptx-content .knowl-content > article.objectives,
.ptx-content .knowl-content > article.outcomes,
.ptx-content .knowl-content > article.remark-like {
padding-left: 0;
border-left: none;
}
.ptx-content .knowl-content > article.theorem-like::after,
.ptx-content .knowl-content > article.definition-like::after,
.ptx-content .knowl-content > article.example-like::after,
.ptx-content .knowl-content > article.project-like::after,
.ptx-content .knowl-content > article.objectives::after,
.ptx-content .knowl-content > article.outcomes::after,
.ptx-content .knowl-content > article.remark-like::after {
content: '';
.ptx-content .knowl__content > article:is(.theorem-like, .definition-like, .example-like, .project-like, .objectives, .outcomes, .remark-like, .proof)::after {
content: '' !important;
border-bottom: none;
margin: 0;
padding: 0;
width: 0;
}

/* sup knowls are used for footnotes */
/* the next 2 are obsolete, because (in PTX HTML) the structure is now a(sup), not sup(a) */
sup [data-knowl] {
padding: 0px 0px 0px 3px;
.ptx-content .knowl__content > article:is(.theorem-like, .definition-like, .example-like, .project-like, .objectives, .outcomes, .remark-like) {
padding-left: 0;
border-left: none;
}

sup .active[data-knowl] {
padding: 0px 0px 0px 3px;
.ptx-content .knowl__content > article:is(.proof) {
padding-right: 0;
border-right: none;
}

sup [data-knowl]:hover {
padding: 0px 0px 0px 3px;

/* nested knowl alt colors */
.knowl__content .knowl__content {
background-color: var(--knowlNested1Background);
}
.knowl__content .knowl__content .knowl__content {
background-color: var(--knowlNested2Background);
}
.knowl__content .knowl__content .knowl__content .knowl__content {
background-color: var(--knowlNested3Background);
}
.knowl__content .knowl__content .knowl__content .knowl__content .knowl__content {
background-color: var(--knowlNested4Background);
}


/* spacing tweaks inside knowls */
.ptx-content .knowl__content > figure {
margin-left: 0;
margin-right: 0;
}
Loading

0 comments on commit b047e3c

Please sign in to comment.