robindoc 0.0.0-experimental-2f95616 → 0.0.0-experimental-d3b6410

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/lib/styles.css +204 -204
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -38,6 +38,7 @@ No additional configuration is needed, while preserving the accessibility and cl
38
38
  - Supports loading content from various sources, including GitHub. More details in the section "[Data Source](./docs/02-structure/03-data-source.md)";
39
39
  - Supports fully automatic documentation generation, as well as custom generation. More details in the section "[Structure](./docs/02-structure/README.md)";
40
40
  - Supports JSX/HTML and special Robin components for all sources. More details in the section "[Writing MD](./docs/01-getting-started/02-writing-md.md)";
41
+ - Fully isolated - does not provide any global styles and does not affect anything extra inside the documentation. Can be safely used inside any other service with any libraries. More details in the section "[Isolation](./docs/01-getting-started/04-app-organization.md#isolation)";
41
42
  - Optimized for metrics and accessibility.
42
43
 
43
44
  ## Additional
package/lib/styles.css CHANGED
@@ -444,10 +444,6 @@
444
444
  grid-template-columns: 1fr 640px 1fr;
445
445
  grid-template-rows: auto 1fr auto;
446
446
  }
447
- }.r-page-container {
448
- min-height: calc(100dvh - var(--r-header-height));
449
- overflow-wrap: break-word;
450
- box-sizing: border-box;
451
447
  }.r-blog-container {
452
448
  min-height: calc(100dvh - var(--r-header-height));
453
449
  overflow-wrap: break-word;
@@ -462,62 +458,15 @@
462
458
  grid-template-columns: 760px 220px;
463
459
  grid-template-rows: auto 1fr auto;
464
460
  }
461
+ }.r-page-container {
462
+ min-height: calc(100dvh - var(--r-header-height));
463
+ overflow-wrap: break-word;
464
+ box-sizing: border-box;
465
465
  }.keylink-to-content {
466
466
  position: absolute !important;
467
467
  top: 8px;
468
468
  left: 12px;
469
469
  z-index: 1001;
470
- }.keylink-to-navigation {
471
- margin-top: -40px;
472
- }.r-article {
473
- padding: 20px 0 80px;
474
- grid-area: content;
475
- }
476
- @media screen and (width >= 1180px) {
477
- .r-article {
478
- padding: 32px 0 80px;
479
- }
480
- }
481
- .r-article > *:first-child {
482
- margin-top: 0;
483
- }
484
-
485
- .r-checkbox {
486
- cursor: pointer;
487
- width: 20px;
488
- height: 20px;
489
- margin: 4px;
490
- vertical-align: middle;
491
- box-sizing: border-box;
492
- }
493
-
494
- .r-label {
495
- cursor: pointer;
496
- }
497
-
498
- .r-task-ol,
499
- .r-task-ul {
500
- list-style: none;
501
- }
502
-
503
- .r-task-label {
504
- display: block;
505
- width: 100%;
506
- padding-top: 2px;
507
- padding-bottom: 2px;
508
- box-sizing: border-box;
509
- }
510
- .r-task-label:hover .r-checkbox {
511
- filter: brightness(0.8);
512
- }
513
-
514
- .r-task-li.r-task-li {
515
- margin-block-start: 2px;
516
- margin-block-end: 2px;
517
- }
518
-
519
- .r-label-text {
520
- vertical-align: middle;
521
470
  }.r-sidebar {
522
471
  grid-area: sidebar;
523
472
  box-sizing: border-box;
@@ -792,6 +741,57 @@
792
741
 
793
742
  .r-sidebar-drop[open] > .r-sidebar-drop-btn > .r-sidebar-drop-icon {
794
743
  transform: rotate(90deg);
744
+ }.keylink-to-navigation {
745
+ margin-top: -40px;
746
+ }.r-article {
747
+ padding: 20px 0 80px;
748
+ grid-area: content;
749
+ }
750
+ @media screen and (width >= 1180px) {
751
+ .r-article {
752
+ padding: 32px 0 80px;
753
+ }
754
+ }
755
+ .r-article > *:first-child {
756
+ margin-top: 0;
757
+ }
758
+
759
+ .r-checkbox {
760
+ cursor: pointer;
761
+ width: 20px;
762
+ height: 20px;
763
+ margin: 4px;
764
+ vertical-align: middle;
765
+ box-sizing: border-box;
766
+ }
767
+
768
+ .r-label {
769
+ cursor: pointer;
770
+ }
771
+
772
+ .r-task-ol,
773
+ .r-task-ul {
774
+ list-style: none;
775
+ }
776
+
777
+ .r-task-label {
778
+ display: block;
779
+ width: 100%;
780
+ padding-top: 2px;
781
+ padding-bottom: 2px;
782
+ box-sizing: border-box;
783
+ }
784
+ .r-task-label:hover .r-checkbox {
785
+ filter: brightness(0.8);
786
+ }
787
+
788
+ .r-task-li.r-task-li {
789
+ margin-block-start: 2px;
790
+ margin-block-end: 2px;
791
+ }
792
+
793
+ .r-label-text {
794
+ vertical-align: middle;
795
795
  }.r-header-menu {
796
796
  display: flex;
797
797
  justify-content: flex-end;
@@ -880,85 +880,6 @@
880
880
  .r-header-input:checked ~ .r-header-burger .r-burger-line._bottom {
881
881
  transform: translateY(0) rotate(-45deg);
882
882
  margin-top: 0;
883
- }.r-dropdown {
884
- position: relative;
885
- color: var(--r-neutral-600);
886
- transition: color 0.2s 0.1s;
887
- }
888
- .r-dropdown:hover, .r-dropdown:focus-within {
889
- color: var(--r-neutral-950);
890
- }
891
- .r-dropdown:hover .r-dropdown-drop, .r-dropdown:focus-within .r-dropdown-drop {
892
- visibility: visible;
893
- pointer-events: all;
894
- transform: translateY(20px);
895
- opacity: 1;
896
- }
897
- .r-dropdown:hover .r-dropdown-chevron, .r-dropdown:focus-within .r-dropdown-chevron {
898
- transform: rotate(180deg);
899
- }
900
-
901
- .r-dropdown-summary {
902
- display: flex;
903
- justify-content: space-between;
904
- align-items: center;
905
- width: 100%;
906
- position: relative;
907
- color: inherit;
908
- cursor: pointer;
909
- padding: 10px 4px;
910
- font-size: 16px;
911
- border: 0;
912
- background: none;
913
- z-index: 1;
914
- box-sizing: border-box;
915
- }
916
-
917
- .r-dropdown-chevron {
918
- display: block;
919
- margin-left: 6px;
920
- transition: transform 0.3s 0.1s;
921
- box-sizing: border-box;
922
- }
923
-
924
- .r-dropdown-drop {
925
- list-style: none;
926
- position: absolute;
927
- top: 16px;
928
- left: -12px;
929
- visibility: hidden;
930
- pointer-events: none;
931
- opacity: 0;
932
- transition: transform 0.3s 0.1s, opacity 0.3s 0.1s, visibility 0.3s 0.1s;
933
- background-color: var(--r-neutral-50);
934
- border: 1px solid var(--r-neutral-100);
935
- border-radius: 8px;
936
- margin: 0;
937
- padding: 2px 6px;
938
- min-width: 120px;
939
- max-width: 180px;
940
- box-sizing: border-box;
941
- }
942
-
943
- .r-dropdown-link {
944
- display: block;
945
- width: 100%;
946
- text-decoration: none;
947
- color: var(--r-neutral-700);
948
- padding: 4px 8px;
949
- margin-top: 4px;
950
- margin-bottom: 4px;
951
- border-radius: 4px;
952
- transition: background-color 0.2s;
953
- box-sizing: border-box;
954
- }
955
- .r-dropdown-link:hover {
956
- color: var(--r-neutral-900);
957
- background-color: var(--r-neutral-100);
958
- }
959
-
960
- .r-dropdown-link._active {
961
- color: var(--r-primary-700);
962
883
  }.r-search-btn {
963
884
  position: relative;
964
885
  border-radius: 6px;
@@ -1075,13 +996,85 @@
1075
996
  font-size: 14px;
1076
997
  color: var(--r-neutral-600);
1077
998
  margin: 12px 0 0;
1078
- }.r-container {
1079
- max-width: 1180px;
1080
- padding-right: 12px;
1081
- padding-left: 12px;
1082
- margin-right: auto;
1083
- margin-left: auto;
999
+ }.r-dropdown {
1000
+ position: relative;
1001
+ color: var(--r-neutral-600);
1002
+ transition: color 0.2s 0.1s;
1003
+ }
1004
+ .r-dropdown:hover, .r-dropdown:focus-within {
1005
+ color: var(--r-neutral-950);
1006
+ }
1007
+ .r-dropdown:hover .r-dropdown-drop, .r-dropdown:focus-within .r-dropdown-drop {
1008
+ visibility: visible;
1009
+ pointer-events: all;
1010
+ transform: translateY(20px);
1011
+ opacity: 1;
1012
+ }
1013
+ .r-dropdown:hover .r-dropdown-chevron, .r-dropdown:focus-within .r-dropdown-chevron {
1014
+ transform: rotate(180deg);
1015
+ }
1016
+
1017
+ .r-dropdown-summary {
1018
+ display: flex;
1019
+ justify-content: space-between;
1020
+ align-items: center;
1021
+ width: 100%;
1022
+ position: relative;
1023
+ color: inherit;
1024
+ cursor: pointer;
1025
+ padding: 10px 4px;
1026
+ font-size: 16px;
1027
+ border: 0;
1028
+ background: none;
1029
+ z-index: 1;
1030
+ box-sizing: border-box;
1031
+ }
1032
+
1033
+ .r-dropdown-chevron {
1034
+ display: block;
1035
+ margin-left: 6px;
1036
+ transition: transform 0.3s 0.1s;
1037
+ box-sizing: border-box;
1038
+ }
1039
+
1040
+ .r-dropdown-drop {
1041
+ list-style: none;
1042
+ position: absolute;
1043
+ top: 16px;
1044
+ left: -12px;
1045
+ visibility: hidden;
1046
+ pointer-events: none;
1047
+ opacity: 0;
1048
+ transition: transform 0.3s 0.1s, opacity 0.3s 0.1s, visibility 0.3s 0.1s;
1049
+ background-color: var(--r-neutral-50);
1050
+ border: 1px solid var(--r-neutral-100);
1051
+ border-radius: 8px;
1052
+ margin: 0;
1053
+ padding: 2px 6px;
1054
+ min-width: 120px;
1055
+ max-width: 180px;
1056
+ box-sizing: border-box;
1057
+ }
1058
+
1059
+ .r-dropdown-link {
1060
+ display: block;
1061
+ width: 100%;
1062
+ text-decoration: none;
1063
+ color: var(--r-neutral-700);
1064
+ padding: 4px 8px;
1065
+ margin-top: 4px;
1066
+ margin-bottom: 4px;
1067
+ border-radius: 4px;
1068
+ transition: background-color 0.2s;
1084
1069
  box-sizing: border-box;
1070
+ }
1071
+ .r-dropdown-link:hover {
1072
+ color: var(--r-neutral-900);
1073
+ background-color: var(--r-neutral-100);
1074
+ }
1075
+
1076
+ .r-dropdown-link._active {
1077
+ color: var(--r-primary-700);
1085
1078
  }.r-header-social {
1086
1079
  display: flex;
1087
1080
  flex: 1;
@@ -1100,6 +1093,13 @@
1100
1093
  }
1101
1094
  .r-header-social-git:hover, .r-header-social-git:focus {
1102
1095
  color: var(--r-neutral-950);
1096
+ }.r-container {
1097
+ max-width: 1180px;
1098
+ padding-right: 12px;
1099
+ padding-left: 12px;
1100
+ margin-right: auto;
1101
+ margin-left: auto;
1102
+ box-sizing: border-box;
1103
1103
  }.r-theme-switcher {
1104
1104
  position: relative;
1105
1105
  display: flex;
@@ -1191,47 +1191,6 @@
1191
1191
  user-select: none;
1192
1192
  pointer-events: none;
1193
1193
  box-sizing: border-box;
1194
- }.r-breadcrumbs {
1195
- grid-area: breadcrumbs;
1196
- list-style: none;
1197
- margin: 0;
1198
- padding: 20px 0 0;
1199
- line-height: 2;
1200
- }
1201
- @media screen and (width >= 768px) {
1202
- .r-breadcrumbs {
1203
- padding: 32px 0 0;
1204
- }
1205
- }
1206
-
1207
- .r-breadcrumb {
1208
- display: inline;
1209
- }
1210
-
1211
- .r-breadcrumb._previous::after {
1212
- content: "/";
1213
- font-weight: 600;
1214
- margin-inline: 8px;
1215
- }
1216
-
1217
- .r-breadcrumb-link {
1218
- color: var(--r-neutral-700);
1219
- text-decoration: none;
1220
- }
1221
- .r-breadcrumb-link:hover {
1222
- color: var(--r-primary-800);
1223
- }
1224
-
1225
- .r-breadcrumb-link,
1226
- .r-breadcrumb-title {
1227
- display: inline;
1228
- padding: 6px 0;
1229
- margin: 0;
1230
- }
1231
-
1232
- .r-breadcrumb-title {
1233
- color: var(--r-neutral-950);
1234
- font-weight: 600;
1235
1194
  }.r-contents {
1236
1195
  grid-area: contents;
1237
1196
  }
@@ -1539,6 +1498,47 @@
1539
1498
 
1540
1499
  .r-pagination-svg {
1541
1500
  display: block;
1501
+ }.r-breadcrumbs {
1502
+ grid-area: breadcrumbs;
1503
+ list-style: none;
1504
+ margin: 0;
1505
+ padding: 20px 0 0;
1506
+ line-height: 2;
1507
+ }
1508
+ @media screen and (width >= 768px) {
1509
+ .r-breadcrumbs {
1510
+ padding: 32px 0 0;
1511
+ }
1512
+ }
1513
+
1514
+ .r-breadcrumb {
1515
+ display: inline;
1516
+ }
1517
+
1518
+ .r-breadcrumb._previous::after {
1519
+ content: "/";
1520
+ font-weight: 600;
1521
+ margin-inline: 8px;
1522
+ }
1523
+
1524
+ .r-breadcrumb-link {
1525
+ color: var(--r-neutral-700);
1526
+ text-decoration: none;
1527
+ }
1528
+ .r-breadcrumb-link:hover {
1529
+ color: var(--r-primary-800);
1530
+ }
1531
+
1532
+ .r-breadcrumb-link,
1533
+ .r-breadcrumb-title {
1534
+ display: inline;
1535
+ padding: 6px 0;
1536
+ margin: 0;
1537
+ }
1538
+
1539
+ .r-breadcrumb-title {
1540
+ color: var(--r-neutral-950);
1541
+ font-weight: 600;
1542
1542
  }.r-last-modified {
1543
1543
  color: var(--r-neutral-700);
1544
1544
  margin-block-start: 16px;
@@ -1702,21 +1702,6 @@
1702
1702
  }
1703
1703
  .r-blockquote-caution .r-blockquote-title {
1704
1704
  color: var(--r-caution);
1705
- }.r-code-block {
1706
- font-family: var(--monospace-font, monospace, monospace);
1707
- font-size: 16px;
1708
- line-height: 1.33;
1709
- border-radius: 6px;
1710
- padding: 16px 20px;
1711
- margin-block-start: 1.5em;
1712
- margin-block-end: 1.75em;
1713
- color: var(--r-primary-800);
1714
- background-color: var(--r-neutral-50);
1715
- border: 1px solid var(--r-neutral-300);
1716
- overflow-x: auto;
1717
- scrollbar-width: thin;
1718
- scrollbar-color: var(--r-neutral-200) transparent;
1719
- box-sizing: border-box;
1720
1705
  }.r-code-span {
1721
1706
  font-family: var(--monospace-font, monospace, monospace);
1722
1707
  background-color: var(--r-neutral-200);
@@ -1729,9 +1714,6 @@
1729
1714
 
1730
1715
  .r-code-span + .r-content-link-external {
1731
1716
  margin-left: -12px;
1732
- }.r-img {
1733
- max-width: 100%;
1734
- box-sizing: border-box;
1735
1717
  }.r-h1 {
1736
1718
  font-size: 32px;
1737
1719
  line-height: 1.4;
@@ -1772,6 +1754,24 @@
1772
1754
  line-height: 1.4;
1773
1755
  margin-block-start: 1.8em;
1774
1756
  margin-block-end: 1.8em;
1757
+ }.r-code-block {
1758
+ font-family: var(--monospace-font, monospace, monospace);
1759
+ font-size: 16px;
1760
+ line-height: 1.33;
1761
+ border-radius: 6px;
1762
+ padding: 16px 20px;
1763
+ margin-block-start: 1.5em;
1764
+ margin-block-end: 1.75em;
1765
+ color: var(--r-primary-800);
1766
+ background-color: var(--r-neutral-50);
1767
+ border: 1px solid var(--r-neutral-300);
1768
+ overflow-x: auto;
1769
+ scrollbar-width: thin;
1770
+ scrollbar-color: var(--r-neutral-200) transparent;
1771
+ box-sizing: border-box;
1772
+ }.r-img {
1773
+ max-width: 100%;
1774
+ box-sizing: border-box;
1775
1775
  }.r-p {
1776
1776
  line-height: 1.8;
1777
1777
  margin-block-start: 1em;
@@ -1983,11 +1983,6 @@
1983
1983
  background-color: currentColor;
1984
1984
  border-radius: 0 0 0 4px;
1985
1985
  box-sizing: border-box;
1986
- }.r-ol {
1987
- padding-inline-start: 0;
1988
- list-style-position: inside;
1989
- margin-block-start: 1em;
1990
- margin-block-end: 1em;
1991
1986
  }.r-li {
1992
1987
  line-height: 1.8;
1993
1988
  margin-block-start: 6px;
@@ -1999,6 +1994,11 @@
1999
1994
  padding-inline-start: 20px;
2000
1995
  margin-block-start: 6px;
2001
1996
  margin-block-end: 6px;
1997
+ }.r-ol {
1998
+ padding-inline-start: 0;
1999
+ list-style-position: inside;
2000
+ margin-block-start: 1em;
2001
+ margin-block-end: 1em;
2002
2002
  }.r-ul {
2003
2003
  padding-inline-start: 0;
2004
2004
  list-style-position: inside;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robindoc",
3
- "version": "0.0.0-experimental-2f95616",
3
+ "version": "0.0.0-experimental-d3b6410",
4
4
  "description": "Robindoc is a framework for automatically creating documentation websites based on markdown files, built on React.js Server Components",
5
5
  "main": "./lib/index.js",
6
6
  "scripts": {