Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docusaurus migration #652

Closed
wants to merge 67 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
645109d
docusaurus base init
akarsh1995 Apr 3, 2022
fdc81cd
clean: custom scss not needed empty
akarsh1995 Apr 3, 2022
9202fb4
logos showcase
akarsh1995 Apr 3, 2022
d5ebecc
libs section added
akarsh1995 Apr 3, 2022
c3928c1
stack section added
akarsh1995 Apr 3, 2022
05486d1
configuration changes as per tokio resources
akarsh1995 Apr 3, 2022
2d275c0
learn from docs config edits
akarsh1995 Apr 3, 2022
61c6961
docusaurus homepage features removed
akarsh1995 Apr 3, 2022
956616c
feat: blog now active
akarsh1995 Apr 3, 2022
d5b615d
readme fix
akarsh1995 Apr 3, 2022
980dc18
clutter clear + refactor
akarsh1995 Apr 3, 2022
00aa750
blog sidebar revamped
akarsh1995 Apr 3, 2022
bd4719f
Merge remote-tracking branch 'upstream/master' into docusaurus-migration
akarsh1995 Apr 4, 2022
68bc06f
fix: sidebar looks
akarsh1995 Apr 4, 2022
9c378b2
navbar fixes + social handles icon
akarsh1995 Apr 4, 2022
d1d52a0
fix: footer
akarsh1995 Apr 4, 2022
b1672bc
blockquotes fixed according to docusaurus .md
akarsh1995 Apr 4, 2022
e61b72a
fix homepage links
akarsh1995 Apr 4, 2022
6ff406e
fix: blog/doc edit links
akarsh1995 Apr 4, 2022
fb06463
doc item footer help
akarsh1995 Apr 4, 2022
ff39c94
fix broken links and unnecessary logs
akarsh1995 Apr 4, 2022
531169b
fix the slicing after one item removal from footer
akarsh1995 Apr 4, 2022
8b17cc7
fix: omit lines starting with "# " in the code block
akarsh1995 Apr 4, 2022
1c5a1c5
fix: missed out page added to toc
akarsh1995 Apr 4, 2022
6f916f3
fix: ```rust,compile_fail -> ```rust for js rendering
akarsh1995 Apr 4, 2022
36a129a
fix: codeblocks with classname ```rs replaced by ```rust
akarsh1995 Apr 4, 2022
572cf3d
fix: include toml lang for formatting
akarsh1995 Apr 4, 2022
92ef977
fix: warning
akarsh1995 Apr 4, 2022
3accc04
fix: wrap button with link instead
akarsh1995 Apr 4, 2022
500c07c
fix: info block - pipe characters removed
akarsh1995 Apr 4, 2022
643e854
+nightly doc test error fix
akarsh1995 Apr 4, 2022
2e40b9a
Readme fixed as per tokio's original
akarsh1995 Apr 4, 2022
0d4e08b
fix: netlify toml
akarsh1995 Apr 4, 2022
0f501ea
fix build dir
akarsh1995 Apr 4, 2022
b6500e3
fix: stack menu colors in the dark mode
akarsh1995 Apr 4, 2022
7dd19e1
fix: nav title display when javascript disabled
akarsh1995 Apr 4, 2022
685989e
keywords and variable not italic in dark mode
akarsh1995 Apr 4, 2022
fa96db6
get started button text always white
akarsh1995 Apr 4, 2022
9e02f8a
fix min height causing issue?
akarsh1995 Apr 5, 2022
9405a59
fix: navbar social icons inside breadcrumb menu
akarsh1995 Apr 5, 2022
dac39db
fix: navbar full logo on javascript disabled
akarsh1995 Apr 5, 2022
59a597f
fix: logo now handled through css after selector
akarsh1995 Apr 5, 2022
17e2478
fix: mention codeblock tag
akarsh1995 Apr 5, 2022
67ca562
fix: netlify build failing
akarsh1995 Apr 5, 2022
c828b95
fix: copyright with html tags can be mentioned inside config. Compone…
akarsh1995 Apr 5, 2022
5783969
fix: node version `v17.8.0` to build the project. netlify build failing
akarsh1995 Apr 5, 2022
e781e86
fix: github workflows update to `cargo +nightly-2022-01-25`
akarsh1995 Apr 5, 2022
4e708ed
fix: footer as per original UI
akarsh1995 Apr 6, 2022
eac8981
fix: navbar and fonts
akarsh1995 Apr 6, 2022
f302460
fix: stack UI
akarsh1995 Apr 6, 2022
885d9e9
fix: library theming
akarsh1995 Apr 6, 2022
c39ddfd
fix: footer bg in dark mode
akarsh1995 Apr 6, 2022
499eab9
fix: fine tune user logos
akarsh1995 Apr 6, 2022
009d940
fix: stack menu bar line height
akarsh1995 Apr 6, 2022
44b516b
fix: process markdown headings as per default rules
akarsh1995 Apr 6, 2022
04b8da8
fix: doc footer design
akarsh1995 Apr 8, 2022
50e3c7c
display logo in the doc sidebar
akarsh1995 Apr 8, 2022
65accf6
fix: dark primary color
akarsh1995 Apr 8, 2022
3d4d1db
fix: primary and navbar hover colors
akarsh1995 Apr 8, 2022
24aa1de
fix: light code block light theme
akarsh1995 Apr 8, 2022
bfa9aa2
fix: logos section hero style dep removed
akarsh1995 Apr 8, 2022
acad490
fix: navbar sidebar in dark mode and navbar
akarsh1995 Apr 8, 2022
ad0a997
fix: codeblock theme
akarsh1995 Apr 8, 2022
ccd01d9
fix: warnings
akarsh1995 Apr 8, 2022
8a1a388
fix: libs section font style
akarsh1995 Apr 9, 2022
2e7cc76
fix: tkstack image padding
akarsh1995 Apr 9, 2022
5335fcf
fix: blog landing page
akarsh1995 Apr 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup install nightly-2021-03-15
run: rustup install nightly-2022-01-25

- name: Build dependencies
run: cargo +nightly-2021-03-15 build
run: cargo +nightly-2022-01-25 build
working-directory: doc-test
continue-on-error: true

- name: Actually run the tests
run: cargo +nightly-2021-03-15 test
run: cargo +nightly-2022-01-25 test
working-directory: doc-test
tutorial-code:
name: Test tutorial-code directory
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ yarn-error.log*
.env.development.local
.env.test.local
.env.production.local

# Generated files
.docusaurus
.cache-loader
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v17.8.0
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ locally.

### Getting Started

The website is built using [Next.js] paired with the [Bulma] CSS framework.
Tokio website is built using [Docusaurus 2](https://docusaurus.io/), paired with the [Bulma] CSS framework.

First, make sure you have NPM installed. Next, start the development server:

The following command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

```bash
npm run dev
npm start
```

Then, open [http://localhost:3000](http://localhost:3000).
Expand All @@ -36,10 +39,9 @@ Then, open [http://localhost:3000](http://localhost:3000).

### Resources

To learn more about Next.js, take a look at the following resources:
To learn more about Docusaurus, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Docusaurus Documentation](https://docusaurus.io/docs) - learn about Docusaurus features and API.
- [Bulma documentation](https://bulma.io/documentation/) - learn about Bulma.

## License
Expand All @@ -62,3 +64,4 @@ cargo test --all
```
The doc tests verify that all code blocks are valid Rust, and the tutorial-code folder
contains the full code examples from the tutorial.

3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
213 changes: 0 additions & 213 deletions components/content.tsx

This file was deleted.

82 changes: 0 additions & 82 deletions components/footer.tsx

This file was deleted.

Loading