diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss
index 4fcaefbe..cb9ababe 100644
--- a/website/src/css/custom.scss
+++ b/website/src/css/custom.scss
@@ -61,13 +61,11 @@ $desktop-xl-width: 1160px;
--ifm-menu-color-active: var(--ifm-color-primary-dark);
--ifm-menu-color-background-hover: #fdf9d7;
--ifm-menu-color-background-active: var(--ifm-menu-color-background-hover);
- --ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,');
--ifm-navbar-height: 6rem;
--ifm-navbar-background-color: var(--ifm-color-primary-dark);
--ifm-navbar-padding-vertical: 0;
--ifm-pagination-nav-border-radius: 0;
--ifm-pre-padding: 2rem;
- --ifm-toc-border-color: transparent;
--ifm-toc-link-color: var(--ifm-color-primary-dark);
}
@@ -191,7 +189,7 @@ h1[class^="h1Heading"] {
margin-bottom: 3rem;
}
-.edit-this-page {
+.theme-edit-this-page {
font-weight: bold;
display: flex;
align-items: center;
@@ -341,7 +339,11 @@ a[class^="sidebarLogo"] {
main[class^="docMainContainer"] {
background: #ffffff;
- padding: 2rem;
+ padding: 2rem 2rem 2rem 4rem;
+
+ @include tablet {
+ padding: 2rem;
+ }
html[data-theme="dark"] & {
background: var(--ifm-color-primary-dark);
@@ -566,19 +568,6 @@ button[class^="copyButton"] {
}
/* docsearch */
-.DocSearch-Button-Container {
- .DocSearch-Search-Icon {
- display: none;
- }
- &:before {
- content: "";
- background-color: black;
- mask: url("/img/Dagger_Icons_Search.svg");
- display: block;
- width: 20px;
- height: 20px;
- }
-}
.DocSearch-Button {
margin-right: 2rem !important;
diff --git a/website/src/theme/DocPaginator/Dagger_Icons_Arrow-next.svg b/website/src/theme/DocPaginator/Dagger_Icons_Arrow-next.svg
deleted file mode 100644
index a0a321c6..00000000
--- a/website/src/theme/DocPaginator/Dagger_Icons_Arrow-next.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/website/src/theme/DocPaginator/Dagger_Icons_Arrow-previous.svg b/website/src/theme/DocPaginator/Dagger_Icons_Arrow-previous.svg
deleted file mode 100644
index 4b2c5b05..00000000
--- a/website/src/theme/DocPaginator/Dagger_Icons_Arrow-previous.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/website/src/theme/DocPaginator/index.js b/website/src/theme/DocPaginator/index.js
deleted file mode 100644
index 993946e4..00000000
--- a/website/src/theme/DocPaginator/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-import React from 'react';
-import Link from '@docusaurus/Link';
-import Translate, { translate } from '@docusaurus/Translate';
-import DocPaginatorPrev from "./Dagger_Icons_Arrow-previous.svg"
-import DocPaginatorNext from "./Dagger_Icons_Arrow-next.svg"
-
-function DocPaginator(props) {
- const { metadata } = props;
- return (
-
- );
-}
-
-export default DocPaginator;
diff --git a/website/src/theme/EditThisPage/index.js b/website/src/theme/EditThisPage/index.js
deleted file mode 100644
index ab56c1e0..00000000
--- a/website/src/theme/EditThisPage/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-import React from 'react';
-import Translate from '@docusaurus/Translate';
-import IconEdit from '../../../static/img/Dagger_Icons_Edit.svg';
-
-export default function EditThisPage({ editUrl }) {
- return (
-
-
-
- Edit this page
-
-
- );
-}
diff --git a/website/src/theme/SearchBar/index.js b/website/src/theme/SearchBar/index.js
deleted file mode 100644
index 4331e973..00000000
--- a/website/src/theme/SearchBar/index.js
+++ /dev/null
@@ -1,204 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-import React, { useState, useRef, useCallback, useMemo } from 'react';
-import { createPortal } from 'react-dom';
-import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
-import { useHistory } from '@docusaurus/router';
-import { useBaseUrlUtils } from '@docusaurus/useBaseUrl';
-import Link from '@docusaurus/Link';
-import Head from '@docusaurus/Head';
-import useSearchQuery from '@theme/hooks/useSearchQuery';
-import { DocSearchButton, useDocSearchKeyboardEvents } from '@docsearch/react';
-import useAlgoliaContextualFacetFilters from '@theme/hooks/useAlgoliaContextualFacetFilters';
-import { translate } from '@docusaurus/Translate';
-
-let DocSearchModal = null;
-
-function Hit({ hit, children }) {
- return {children};
-}
-
-function ResultsFooter({ state, onClose }) {
- const { generateSearchPageLink } = useSearchQuery();
-
- return (
-
- See all {state.context.nbHits} results
-
- );
-}
-
-function DocSearch({ contextualSearch, ...props }) {
- const { siteMetadata } = useDocusaurusContext();
-
- const contextualSearchFacetFilters = useAlgoliaContextualFacetFilters();
-
- const configFacetFilters = props.searchParameters?.facetFilters ?? [];
-
- const facetFilters = contextualSearch
- ? // Merge contextual search filters with config filters
- [...contextualSearchFacetFilters, ...configFacetFilters]
- : // ... or use config facetFilters
- configFacetFilters;
-
- // we let user override default searchParameters if he wants to
- const searchParameters = {
- ...props.searchParameters,
- facetFilters,
- };
-
- const { withBaseUrl } = useBaseUrlUtils();
- const history = useHistory();
- const searchContainer = useRef(null);
- const searchButtonRef = useRef(null);
- const [isOpen, setIsOpen] = useState(false);
- const [initialQuery, setInitialQuery] = useState(null);
-
- const importDocSearchModalIfNeeded = useCallback(() => {
- if (DocSearchModal) {
- return Promise.resolve();
- }
-
- return Promise.all([
- import('@docsearch/react/modal'),
- import('@docsearch/react/style'),
- import('./styles.css'),
- ]).then(([{ DocSearchModal: Modal }]) => {
- DocSearchModal = Modal;
- });
- }, []);
-
- const onOpen = useCallback(() => {
- importDocSearchModalIfNeeded().then(() => {
- searchContainer.current = document.createElement('div');
- document.body.insertBefore(
- searchContainer.current,
- document.body.firstChild,
- );
- setIsOpen(true);
- });
- }, [importDocSearchModalIfNeeded, setIsOpen]);
-
- const onClose = useCallback(() => {
- setIsOpen(false);
- searchContainer.current.remove();
- }, [setIsOpen]);
-
- const onInput = useCallback(
- (event) => {
- importDocSearchModalIfNeeded().then(() => {
- setIsOpen(true);
- setInitialQuery(event.key);
- });
- },
- [importDocSearchModalIfNeeded, setIsOpen, setInitialQuery],
- );
-
- const navigator = useRef({
- navigate({ itemUrl }) {
- history.push(itemUrl);
- },
- }).current;
-
- const transformItems = useRef((items) => {
- return items.map((item) => {
- // We transform the absolute URL into a relative URL.
- // Alternatively, we can use `new URL(item.url)` but it's not
- // supported in IE.
- const a = document.createElement('a');
- a.href = item.url;
-
- return {
- ...item,
- url: withBaseUrl(`${a.pathname}${a.hash}`),
- };
- });
- }).current;
-
- const resultsFooterComponent = useMemo(
- () => (footerProps) => ,
- [onClose],
- );
-
- const transformSearchClient = useCallback(
- (searchClient) => {
- searchClient.addAlgoliaAgent(
- 'docusaurus',
- siteMetadata.docusaurusVersion,
- );
-
- return searchClient;
- },
- [siteMetadata.docusaurusVersion],
- );
-
- useDocSearchKeyboardEvents({
- isOpen,
- onOpen,
- onClose,
- onInput,
- searchButtonRef,
- });
-
- const translatedSearchLabel = translate({
- id: 'theme.SearchBar.label',
- message: 'Search',
- description: 'The ARIA label and placeholder for search button',
- });
-
- return (
- <>
-
- {/* This hints the browser that the website will load data from Algolia,
- and allows it to preconnect to the DocSearch cluster. It makes the first
- query faster, especially on mobile. */}
-
-
-
-
-
- {isOpen &&
- createPortal(
- ,
- searchContainer.current,
- )}
- >
- );
-}
-
-function SearchBar() {
- const { siteConfig } = useDocusaurusContext();
- return ;
-}
-
-export default SearchBar;
diff --git a/website/src/theme/SearchBar/styles.css b/website/src/theme/SearchBar/styles.css
deleted file mode 100644
index e57bb046..00000000
--- a/website/src/theme/SearchBar/styles.css
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
-
-:root {
- --docsearch-primary-color: var(--ifm-color-primary);
- --docsearch-text-color: var(--ifm-font-color-base);
-}
-
-.DocSearch-Button {
- transition: all var(--ifm-transition-fast)
- var(--ifm-transition-timing-default);
-}
-
-.DocSearch-Container {
- z-index: calc(var(--ifm-z-index-fixed) + 1);
-}