diff --git a/docs/assets/overrides/partials/comments.html b/docs/assets/overrides/partials/comments.html new file mode 100644 index 000000000..fc2f8e81d --- /dev/null +++ b/docs/assets/overrides/partials/comments.html @@ -0,0 +1,54 @@ +{% if page.url.split("/")[0] in ["concepts", "tutorials", "pipes", "tokenizers", "data", "utilities"] %} + + + + +{% endif %} diff --git a/docs/assets/stylesheets/giscus_dark.css b/docs/assets/stylesheets/giscus_dark.css new file mode 100644 index 000000000..2843db13f --- /dev/null +++ b/docs/assets/stylesheets/giscus_dark.css @@ -0,0 +1,218 @@ +/*! MIT License + * Copyright (c) 2018 GitHub Inc. + * https://github.com/primer/primitives/blob/main/LICENSE + */main{--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-btn-text:#c9d1d9;--color-btn-bg:#21262d;--color-btn-border:#f0f6fc1a;--color-btn-shadow:0 0 #0000;--color-btn-inset-shadow:0 0 #0000;--color-btn-hover-bg:#30363d;--color-btn-hover-border:#8b949e;--color-btn-active-bg:#282e33;--color-btn-active-border:#6e7681;--color-btn-selected-bg:#161b22;--color-btn-primary-text:#fff;--color-btn-primary-bg:#238636;--color-btn-primary-border:#f0f6fc1a;--color-btn-primary-shadow:0 0 #0000;--color-btn-primary-inset-shadow:0 0 #0000;--color-btn-primary-hover-bg:#2ea043;--color-btn-primary-hover-border:#f0f6fc1a;--color-btn-primary-selected-bg:#238636;--color-btn-primary-selected-shadow:0 0 #0000;--color-btn-primary-disabled-text:#ffffff80;--color-btn-primary-disabled-bg:#23863699;--color-btn-primary-disabled-border:#f0f6fc1a;--color-action-list-item-default-hover-bg:#b1bac41f;--color-segmented-control-bg:#6e76811a;--color-segmented-control-button-bg:#0d1117;--color-segmented-control-button-selected-border:#6e7681;--color-fg-default:#e6edf3;--color-fg-muted:#7d8590;--color-fg-subtle:#6e7681;--color-canvas-default:#0d1117;--color-canvas-overlay:#161b22;--color-canvas-inset:#010409;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:#6e768166;--color-accent-fg:#2f81f7;--color-accent-emphasis:#1f6feb;--color-accent-muted:#388bfd66;--color-accent-subtle:#388bfd1a;--color-success-fg:#3fb950;--color-attention-fg:#d29922;--color-attention-muted:#bb800966;--color-attention-subtle:#bb800926;--color-danger-fg:#f85149;--color-danger-muted:#f8514966;--color-danger-subtle:#f851491a;--color-primer-shadow-inset:0 0 #0000;--color-scale-gray-7:#21262d;--color-scale-blue-8:#0c2d6b; + + /*! Extensions from @primer/css/alerts/flash.scss */--color-social-reaction-bg-hover:var(--color-scale-gray-7);--color-social-reaction-bg-reacted-hover:var(--color-scale-blue-8)}main .pagination-loader-container{background-image:url(https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg)}main .gsc-loading-image{background-image:url(https://github.githubassets.com/images/mona-loading-dark.gif)} + +/* Hide closed discussions */ + +.gsc-comment:has(.gsc-comment-content.minimized) .gsc-replies { + display: none; +} + +.gsc-comment:has(.gsc-comment-content.minimized) { + display: none; +} + +.gsc-timeline:has(.gsc-comment-content.minimized):after { + content: "Some dicussions were closed"; + font-size: 0.875rem; + font-style: italic; + color: var(--color-fg-muted, var(--color-text-secondary)); +} + +/* Styling: +* The main goal of this is to make it more compact, re-ordering elements to stack them horizontally, removing +* unnecessary padding and margins, and dropping some irrelevant buttons (like the markdown helper link) */ + +.gsc-timeline { + gap: 0.5rem; +} + +.gsc-main { + gap: 0.25rem; +} + +.gsc-comments { + gap: 0.8rem +} + +.gsc-comment-header { + padding-inline-end:0.5rem; + padding-inline-start:0.5rem; + padding-top: .5rem; + grid-area: header; +} + +.gsc-comment-content { + padding: 0.5rem 0.75rem; +} + +.gsc-comment-reactions { + align-items: center; + margin-inline-start:0.5rem +} + +.gsc-comment-box-textarea { + min-height: 58px !important; +} + +.gsc-box-preview { + min-height: 58px !important; + padding-bottom: 0.5rem; +} + +.gsc-reply-box { + padding-inline-end: 0.5rem; + padding-bottom: 0.5rem; + padding-inline-start: 0.5rem; + padding-top: 0.5rem; +} + +.gsc-reply { + padding: 0 0.5rem 0; +} + +.gsc-comment-box, .gsc-reply-box { + grid-area: reply; + border-bottom-left-radius: 0.3rem; + border-bottom-right-radius: 0.3rem; +} + +.gsc-replies { + grid-area: replies; +} + +.gsc-reactions-count + div {} + +#__next .gsc-reactions-count + div { + margin-top: 0.25rem; +} + +.gsc-comment-footer { + grid-area: reactions; + padding-inline-end: 0.5rem; + padding-top: .5rem; + margin-bottom: 0; + justify-content: end; + flex: 0; +} + +.gsc-comment-content { + grid-area: content; +} + +.gsc-comment > div { + display: grid; + grid-template-areas: + "header reactions" + "content content" + "replies replies" + "reply reply"; + grid-template-rows: auto; +} + +.gsc-comment-replies-count { + margin-inline-end: 0rem; +} + +.gsc-tl-line { + inset-inline-start: 22px; +} + +.gsc-reply > div.flex > div.w-full { + display: grid; + grid-template: + "header reactions" + "content content"; +} + +.gsc-reply-content { + grid-area: content; +} + +.gsc-reply-footer { + grid-area: reactions; + justify-content: end; +} + +.gsc-reply-header { + grid-area: header; +} + +.gsc-reply-reactions { + gap: 0; + margin-inline-end: 0; +} + +.gsc-comment-box-textarea-extras { + display: none; +} + +.gsc-timeline .gsc-reactions-popover.open.left:before { + inset-inline-end: 9px; + inset-inline-start: unset; +} + +.gsc-timeline .gsc-reactions-popover.top { + inset-inline-end: -.375rem; + inset-inline-start: unset; +} + +.gsc-timeline .gsc-reactions-popover.open.left:after { + inset-inline-end: 10px; + inset-inline-start: unset; +} + +.gsc-comment-box-textarea { + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; +} + +.gsc-comment-box { + display: grid; + grid-template: + "header buttons" + "content content"; + grid-template-columns: auto minmax(0,max-content); +} + +.gsc-comment-box-tabs { + grid-area: header; +} + +.gsc-comment-box-main { + grid-area: content; +} + +.gsc-comment-box-bottom { + grid-area: buttons; + background-color: var(--color-canvas-subtle, var(--color-bg-tertiary)); + margin: 0px; + align-items: center; + border-bottom-width: 1px; + border-start-end-radius: .25rem; + border-start-start-radius: 0; + padding-right: 0.5rem; + justify-content: end; + gap: 0.5rem; +} + +.gsc-comment-box-md-toolbar { + margin-top: 0px; +} + +.gsc-comment-box-is-reply > .gsc-comment-box-bottom { + border-top-width: 1px; + border-top-right-radius: 0; +} + +.gsc-comment-box-preview { + min-height: 58px !important; +} + +/* Otherwise some popup overflow the iframe */ +.gsc-reactions { + margin-top: 0.95em; +} diff --git a/docs/assets/stylesheets/giscus_light.css b/docs/assets/stylesheets/giscus_light.css new file mode 100644 index 000000000..cf66def5a --- /dev/null +++ b/docs/assets/stylesheets/giscus_light.css @@ -0,0 +1,218 @@ +/*! MIT License + * Copyright (c) 2018 GitHub Inc. + * https://github.com/primer/primitives/blob/main/LICENSE + */main{--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-btn-text:#24292f;--color-btn-bg:#f6f8fa;--color-btn-border:#1f232826;--color-btn-shadow:0 1px 0 #1f23280a;--color-btn-inset-shadow:inset 0 1px 0 #ffffff40;--color-btn-hover-bg:#f3f4f6;--color-btn-hover-border:#1f232826;--color-btn-active-bg:#ebecf0;--color-btn-active-border:#1f232826;--color-btn-selected-bg:#eeeff2;--color-btn-primary-text:#fff;--color-btn-primary-bg:#1f883d;--color-btn-primary-border:#1f232826;--color-btn-primary-shadow:0 1px 0 #1f23281a;--color-btn-primary-inset-shadow:inset 0 1px 0 #ffffff08;--color-btn-primary-hover-bg:#1a7f37;--color-btn-primary-hover-border:#1f232826;--color-btn-primary-selected-bg:#187733;--color-btn-primary-selected-shadow:inset 0 1px 0 #002d1133;--color-btn-primary-disabled-text:#fffc;--color-btn-primary-disabled-bg:#94d3a2;--color-btn-primary-disabled-border:#1f232826;--color-action-list-item-default-hover-bg:#d0d7de52;--color-segmented-control-bg:#eaeef2;--color-segmented-control-button-bg:#fff;--color-segmented-control-button-selected-border:#8c959f;--color-fg-default:#1f2328;--color-fg-muted:#656d76;--color-fg-subtle:#6e7781;--color-canvas-default:#fff;--color-canvas-overlay:#fff;--color-canvas-inset:#f6f8fa;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:#d8dee4;--color-neutral-muted:#afb8c133;--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-accent-muted:#54aeff66;--color-accent-subtle:#ddf4ff;--color-success-fg:#1a7f37;--color-attention-fg:#9a6700;--color-attention-muted:#d4a72c66;--color-attention-subtle:#fff8c5;--color-danger-fg:#d1242f;--color-danger-muted:#ff818266;--color-danger-subtle:#ffebe9;--color-primer-shadow-inset:inset 0 1px 0 #d0d7de33;--color-scale-gray-1:#eaeef2;--color-scale-blue-1:#b6e3ff; + + /*! Extensions from @primer/css/alerts/flash.scss */--color-social-reaction-bg-hover:var(--color-scale-gray-1);--color-social-reaction-bg-reacted-hover:var(--color-scale-blue-1)}main .pagination-loader-container{background-image:url(https://github.com/images/modules/pulls/progressive-disclosure-line.svg)}main .gsc-loading-image{background-image:url(https://github.githubassets.com/images/mona-loading-default.gif)} + +/* Hide closed discussions */ + +.gsc-comment:has(.gsc-comment-content.minimized) .gsc-replies { + display: none; +} + +.gsc-comment:has(.gsc-comment-content.minimized) { + display: none; +} + +.gsc-timeline:has(.gsc-comment-content.minimized):after { + content: "Some dicussions were closed"; + font-size: 0.875rem; + font-style: italic; + color: var(--color-fg-muted, var(--color-text-secondary)); +} + +/* Styling: +* The main goal of this is to make it more compact, re-ordering elements to stack them horizontally, removing +* unnecessary padding and margins, and dropping some irrelevant buttons (like the markdown helper link) */ + +.gsc-timeline { + gap: 0.5rem; +} + +.gsc-main { + gap: 0.25rem; +} + +.gsc-comments { + gap: 0.8rem +} + +.gsc-comment-header { + padding-inline-end:0.5rem; + padding-inline-start:0.5rem; + padding-top: .5rem; + grid-area: header; +} + +.gsc-comment-content { + padding: 0.5rem 0.75rem; +} + +.gsc-comment-reactions { + align-items: center; + margin-inline-start:0.5rem +} + +.gsc-comment-box-textarea { + min-height: 58px !important; +} + +.gsc-box-preview { + min-height: 58px !important; + padding-bottom: 0.5rem; +} + +.gsc-reply-box { + padding-inline-end: 0.5rem; + padding-bottom: 0.5rem; + padding-inline-start: 0.5rem; + padding-top: 0.5rem; +} + +.gsc-reply { + padding: 0 0.5rem 0; +} + +.gsc-comment-box, .gsc-reply-box { + grid-area: reply; + border-bottom-left-radius: 0.3rem; + border-bottom-right-radius: 0.3rem; +} + +.gsc-replies { + grid-area: replies; +} + +.gsc-reactions-count + div {} + +#__next .gsc-reactions-count + div { + margin-top: 0.25rem; +} + +.gsc-comment-footer { + grid-area: reactions; + padding-inline-end: 0.5rem; + padding-top: .5rem; + margin-bottom: 0; + justify-content: end; + flex: 0; +} + +.gsc-comment-content { + grid-area: content; +} + +.gsc-comment > div { + display: grid; + grid-template-areas: + "header reactions" + "content content" + "replies replies" + "reply reply"; + grid-template-rows: auto; +} + +.gsc-comment-replies-count { + margin-inline-end: 0rem; +} + +.gsc-tl-line { + inset-inline-start: 22px; +} + +.gsc-reply > div.flex > div.w-full { + display: grid; + grid-template: + "header reactions" + "content content"; +} + +.gsc-reply-content { + grid-area: content; +} + +.gsc-reply-footer { + grid-area: reactions; + justify-content: end; +} + +.gsc-reply-header { + grid-area: header; +} + +.gsc-reply-reactions { + gap: 0; + margin-inline-end: 0; +} + +.gsc-comment-box-textarea-extras { + display: none; +} + +.gsc-timeline .gsc-reactions-popover.open.left:before { + inset-inline-end: 9px; + inset-inline-start: unset; +} + +.gsc-timeline .gsc-reactions-popover.top { + inset-inline-end: -.375rem; + inset-inline-start: unset; +} + +.gsc-timeline .gsc-reactions-popover.open.left:after { + inset-inline-end: 10px; + inset-inline-start: unset; +} + +.gsc-comment-box-textarea { + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; +} + +.gsc-comment-box { + display: grid; + grid-template: + "header buttons" + "content content"; + grid-template-columns: auto minmax(0,max-content); +} + +.gsc-comment-box-tabs { + grid-area: header; +} + +.gsc-comment-box-main { + grid-area: content; +} + +.gsc-comment-box-bottom { + grid-area: buttons; + background-color: var(--color-canvas-subtle, var(--color-bg-tertiary)); + margin: 0px; + align-items: center; + border-bottom-width: 1px; + border-start-end-radius: .25rem; + border-start-start-radius: 0; + padding-right: 0.5rem; + justify-content: end; + gap: 0.5rem; +} + +.gsc-comment-box-md-toolbar { + margin-top: 0px; +} + +.gsc-comment-box-is-reply > .gsc-comment-box-bottom { + border-top-width: 1px; + border-top-right-radius: 0; +} + +.gsc-comment-box-preview { + min-height: 58px !important; +} + +/* Otherwise some popup overflow the iframe */ +.gsc-reactions { + margin-top: 0.95em; +} diff --git a/docs/pipes/index.md b/docs/pipes/index.md index 96e7b8000..932961371 100644 --- a/docs/pipes/index.md +++ b/docs/pipes/index.md @@ -8,25 +8,25 @@ EDS-NLP provides easy-to-use pipeline components (aka pipes). === "Core" - See the [Core components overview](/pipes/misc/overview/) for more information. + See the [Core components overview](/pipes/misc/) for more information. --8<-- "docs/pipes/core/index.md:components" === "Qualifiers" - See the [Qualifiers overview](/pipes/qualifiers/overview/) for more information. + See the [Qualifiers overview](/pipes/qualifiers/) for more information. --8<-- "docs/pipes/qualifiers/index.md:components" === "Miscellaneous" - See the [Miscellaneous components overview](/pipes/misc/overview/) for more information. + See the [Miscellaneous components overview](/pipes/misc/) for more information. --8<-- "docs/pipes/misc/index.md:components" === "NER" - See the [NER overview](/pipes/ner/overview/) for more information. + See the [NER overview](/pipes/ner/) for more information. --8<-- "docs/pipes/ner/index.md:components" diff --git a/docs/tutorials/qualifying-entities.md b/docs/tutorials/qualifying-entities.md index 8d9afe097..b02f67867 100644 --- a/docs/tutorials/qualifying-entities.md +++ b/docs/tutorials/qualifying-entities.md @@ -138,5 +138,5 @@ We get the following result: ## Conclusion The qualifier pipes limits the number of false positives by detecting linguistic modulations such as negations or speculations. -Go to the [full documentation](/pipes/qualifiers/overview) for a complete presentation of the different pipes, +Go to the [full documentation](/pipes/qualifiers) for a complete presentation of the different pipes, their configuration options and validation performance.