Skip to content

Commit afefc6c

Browse files
committed
feat: WIP hacking my way to port signature API
1 parent 2efb355 commit afefc6c

File tree

11 files changed

+1895
-19
lines changed

11 files changed

+1895
-19
lines changed

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<PackageVersion Include="FSharp.Core" Version="[8.0.100]" />
1010
<PackageVersion Include="FSharp.Compiler.Service" Version="[43.8.100]" />
1111
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
12+
<PackageVersion Include="Markdig" Version="0.37.0" />
1213
<PackageVersion Include="Microsoft.Build" Version="" PrivateAssets="all" />
1314
<PackageVersion Include="Microsoft.Build.Framework" Version="" PrivateAssets="all" />
1415
<PackageVersion Include="Microsoft.Build.Utilities.Core" Version="" PrivateAssets="all" />

docs/_template.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
<script type="application/javascript" src="{{root}}content/fsdocs-details-set-expanded.js"></script>
2626
<link href="{{root}}content/fsdocs-default.css" rel="stylesheet" type="text/css"/>
2727
<link href="{{root}}content/fsdocs-theme.css" rel="stylesheet" type="text/css"/>
28+
<!-- Load prism.js -->
29+
<!--
30+
TODO:
31+
We probably want to add the auto-loader plugin to make the initial prism.js as small as possible
32+
This plugin allows to load language on demand, right now I loaded the most default languages from prism.js
33+
and the ones supported by Fable.
34+
markup+css+clike+javascript+dart+fsharp+python+rust
35+
-->
36+
<link href="{{root}}content/prism/prism.css" rel="stylesheet" type="text/css"/>
37+
<script type="module" src="{{root}}content/prism/prism.js"></script>
2838
{{fsdocs-head-extra}}
2939
{{fsdocs-watch-script}}
3040
</head>

docs/content/fsdocs-default.css

Lines changed: 73 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
--code-preprocessor-color: #af75c1;
123123
--code-fsioutput-color: #808080;
124124
--code-tooltip-color: #d1d1d1;
125+
125126
}
126127

127128
/* dark theme */
@@ -671,7 +672,10 @@ a {
671672

672673
p {
673674
line-height: 1.8;
674-
margin-top: var(--spacing-300);
675+
676+
&:not(:last-child) {
677+
margin-bottom: var(--spacing-300);
678+
}
675679
}
676680

677681
ol, ul {
@@ -713,23 +717,20 @@ blockquote {
713717
/* Code snippets */
714718

715719
/* reset browser style */
716-
pre {
717-
margin: 0;
718-
padding: 0;
719-
}
720+
720721

721722
code, table.pre, pre {
722723
background-color: var(--code-background);
723724
color: var(--code-color);
724-
font-family: var(--monospace-font);
725+
font-family: var(--monospace-font);
725726
font-variant-ligatures: none;
726727
font-size: var(--font-200);
727728
-webkit-text-size-adjust: 100%;
728729
}
729730

730731
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
731732
font-size: inherit;
732-
}
733+
}
733734

734735
table.pre, #content > pre.fssnip {
735736
border: 1px solid var(--code-fence-border-color);
@@ -1062,20 +1063,11 @@ span[onmouseout] {
10621063
flex-grow: 1;
10631064
}
10641065

1065-
& pre {
1066-
margin-bottom: var(--spacing-200);
1067-
padding: var(--spacing-50);
1068-
flex-grow: 1;
1069-
overflow-x: auto;
1070-
}
10711066
}
10721067
}
10731068

10741069
.fsdocs-summary-contents {
1075-
display: flex;
1076-
flex-direction: column;
1077-
justify-content: flex-start;
1078-
align-items: flex-start;
1070+
width: 100%;
10791071
}
10801072

10811073
.fsdocs-member-xmldoc-column {
@@ -1286,3 +1278,67 @@ dialog {
12861278
opacity: 0.75;
12871279
}
12881280
}
1281+
1282+
1283+
1284+
1285+
1286+
/* Code */
1287+
1288+
.fsdocs-api-code {
1289+
font-family: var(--monospace-font);
1290+
margin-bottom: 1rem;
1291+
scroll-margin-top: 5.25rem;
1292+
1293+
pre {
1294+
background-color: transparent;
1295+
}
1296+
1297+
.line {
1298+
white-space: nowrap;
1299+
}
1300+
1301+
a.record-field-name,
1302+
a.union-case-property,
1303+
a.property {
1304+
/* color: darken($primary, 4%); */
1305+
1306+
&:hover {
1307+
text-decoration: underline;
1308+
}
1309+
}
1310+
1311+
span.property {
1312+
/* color: darken($primary, 4%); */
1313+
}
1314+
1315+
@keyframes blink {
1316+
0% {
1317+
background-color: lighten($primary, 4%);
1318+
color: $white;
1319+
}
1320+
100% {
1321+
background-color: transparent;
1322+
color: $link;
1323+
}
1324+
}
1325+
1326+
.property[id],
1327+
a[id] {
1328+
&:target {
1329+
animation-name: blink;
1330+
animation-direction: normal;
1331+
animation-duration: 0.75s;
1332+
animation-iteration-count: 2;
1333+
animation-timing-function: ease;
1334+
}
1335+
}
1336+
1337+
.keyword {
1338+
color: var(--code-keywords-color);
1339+
}
1340+
1341+
.type {
1342+
color: var(--code-reference-color);
1343+
}
1344+
}

0 commit comments

Comments
 (0)