Skip to content

Commit

Permalink
Docs styles updates (#1618)
Browse files Browse the repository at this point in the history
* admonition refresh (3 out of 5 variants)

* docs home page wip

* docs home wip

* add links/contribute section

* fix admonition types

* add blog plugin; add blog section;

* update languages

* fix layout/seo issues

* admonition update

* update links; fix sidebar style

* clean up

* fix languages layout and borders

* remove dead code

* get rid of magic numbers in tooltip code

* snap language cards on mobile

---------

Co-authored-by: Jason <[email protected]>
  • Loading branch information
olaszakos and dfx-json authored Jul 6, 2023
1 parent ee84277 commit 7c1ed3a
Show file tree
Hide file tree
Showing 42 changed files with 1,466 additions and 1,558 deletions.
43 changes: 33 additions & 10 deletions docs/home.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,44 @@ custom_edit_url: null
authors: null
---

import Header from "@site/src/components/DocsHome/Header";
import Contribute from "@site/src/components/DocsHome/Contribute";
import Tutorials from "@site/src/components/DocsHome/Tutorials";
import DevGuides from "@site/src/components/DocsHome/DevGuides";
import Languages from "@site/src/components/DocsHome/Languages";
import DocsHomePage from "@site/src/components/DocsHome/";
import { css } from "@site/src/utils/dummy-css";

<style>{css`
.main-wrapper {
overflow: hidden;
}
.container {
max-width: none;
padding-bottom: 0 !important;
}
.main-wrapper main {
max-width: none;
}
.theme-doc-footer {
display: none;
}
.pagination-nav {
display: none;
}
.main-wrapper main .row .col {
padding: 0 16px;
}
@media (min-width: 641px) {
.main-wrapper main .row .col {
padding: 0 32px;
}
}
@media (min-width: 997px) {
.main-wrapper main .row .col {
padding: 0 50px;
}
}
`}</style>

<Header />
<Tutorials />
<DevGuides />
<Languages />
<Contribute />
<DocsHomePage />
2 changes: 2 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const matomoPlugin = require("./plugins/matomo");
const customWebpack = require("./plugins/custom-webpack");
const liveSessionsPlugin = require("./plugins/live-sessions");
const roadmapDataPlugin = require("./plugins/roadmap-data");
const blogPostsPlugin = require("./plugins/blog-posts");
const whatIsIcpDataPlugin = require("./plugins/what-is-the-ic-cards");
const howItWorksCardsPlugin = require("./plugins/howitworks-cards");
const howItWorksArticlesPlugin = require("./plugins/howitworks-articles");
Expand Down Expand Up @@ -404,6 +405,7 @@ const config = {
roadmapDataPlugin,
whatIsIcpDataPlugin,
matomoPlugin,
blogPostsPlugin,
[
"@docusaurus/plugin-client-redirects",
{
Expand Down
Loading

0 comments on commit 7c1ed3a

Please sign in to comment.