Skip to content

Commit

Permalink
refactor (#80)
Browse files Browse the repository at this point in the history
* refactor: remove src file

* fix: submodule stylesheet issue

* fix: submodule fetch issue
  • Loading branch information
novalagung authored Oct 2, 2023
1 parent 08756db commit b568714
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 258 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 16
Expand All @@ -35,6 +37,8 @@ jobs:
run: sleep 30s
shell: bash
- uses: actions/checkout@v3
with:
submodules: recursive
- name: install prince
run: |
curl https://www.princexml.com/download/prince-14.2-linux-generic-x86_64.tar.gz -O
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "examples"]
path = examples
url = git@github.com:novalagung/dasarpemrogramanrust-example.git
url = https://github.com/novalagung/dasarpemrogramanrust-example.git
[submodule "src"]
path = src
url = https://github.com/novalagung/my-docusaurus-global-src.git
5 changes: 4 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ const config = {
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: [
require.resolve('./src/css/global.css'),
require.resolve('./src-local/css/custom.css'),
],
},
gtag: {
trackingID: 'G-HKPC8ZGM74',
Expand Down
2 changes: 1 addition & 1 deletion examples
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src
Submodule src added at 9e20e6
33 changes: 33 additions & 0 deletions src-local/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--doc-sidebar-width: 400px !important;
--ifm-blockquote-border-left-width: 4px;
--ifm-blockquote-border-color: #2e8555;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

/* custom css */

.theme-code-block[class*="language-"] {
background: #FF874B !important;
}
Empty file removed src/components/.gitkeep
Empty file.
84 changes: 0 additions & 84 deletions src/css/custom.css

This file was deleted.

6 changes: 0 additions & 6 deletions src/pages/intro.js

This file was deleted.

28 changes: 0 additions & 28 deletions src/theme/DocItem/Content/index.js

This file was deleted.

29 changes: 0 additions & 29 deletions src/theme/DocItem/index.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/theme/DocSidebarItems/index.js

This file was deleted.

79 changes: 0 additions & 79 deletions src/theme/Navbar/Content/index.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/theme/Navbar/Content/styles.module.css

This file was deleted.

0 comments on commit b568714

Please sign in to comment.