Skip to content

feat: docusaurus support #376

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

Merged
merged 129 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from 114 commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
c0df81c
.
songkg7 Jun 27, 2024
206e9b8
update linter.yml
songkg7 Jun 27, 2024
04ac0e4
.
songkg7 Jun 27, 2024
c05582f
.
songkg7 Jun 27, 2024
e417a85
.
songkg7 Jun 27, 2024
782a748
Revert "."
songkg7 Jun 27, 2024
60fc571
Revert "."
songkg7 Jun 27, 2024
5314ace
.
songkg7 Jun 27, 2024
077457a
.
songkg7 Jun 27, 2024
d57dea4
.
songkg7 Jun 27, 2024
cee804c
Revert "."
songkg7 Jun 27, 2024
e4ed3da
Revert "."
songkg7 Jun 27, 2024
1217afb
Revert "."
songkg7 Jun 27, 2024
485ec8a
.
songkg7 Jun 27, 2024
9573ed1
.
songkg7 Jun 27, 2024
4c0b97c
.
songkg7 Jun 27, 2024
718dbde
.
songkg7 Jun 27, 2024
133879a
.
songkg7 Jun 27, 2024
48edb37
.
songkg7 Jun 27, 2024
29e9750
.
songkg7 Jun 27, 2024
eed3aa3
.
songkg7 Jun 27, 2024
3b58a91
.
songkg7 Jun 27, 2024
91d403b
.
songkg7 Jun 27, 2024
660a08b
.
songkg7 Jun 27, 2024
202048e
.
songkg7 Jun 27, 2024
3cc6711
.
songkg7 Jun 27, 2024
adc6837
.
songkg7 Jun 27, 2024
0fd7b69
.
songkg7 Jun 27, 2024
3f5a9d6
.
songkg7 Jun 27, 2024
1ac954a
.
songkg7 Jun 27, 2024
9a2da3b
.
songkg7 Jun 27, 2024
129448f
.
songkg7 Jun 27, 2024
743224c
.
songkg7 Jun 27, 2024
6fa27a5
.
songkg7 Jun 27, 2024
87e791a
.
songkg7 Jun 27, 2024
e33a9c0
.
songkg7 Jun 27, 2024
ab7f4fc
.
songkg7 Jun 27, 2024
4f55b3d
.
songkg7 Jun 27, 2024
e7eb889
.
songkg7 Jun 27, 2024
7da75bd
.
songkg7 Jun 27, 2024
adc9866
.
songkg7 Jun 27, 2024
d8918e5
.
songkg7 Jun 27, 2024
c452c6a
.
songkg7 Jun 27, 2024
ffa6bf1
.
songkg7 Jun 27, 2024
708f1ce
.
songkg7 Jun 27, 2024
76878d0
.
songkg7 Jun 27, 2024
af43ebf
.
songkg7 Jun 27, 2024
8fe8470
.
songkg7 Jun 27, 2024
05c877a
.
songkg7 Jun 27, 2024
49da0bf
.
songkg7 Jun 28, 2024
f573316
.
songkg7 Jun 28, 2024
3622a53
.
songkg7 Jun 28, 2024
58131f2
.
songkg7 Jun 28, 2024
1cf1c25
.
songkg7 Jun 28, 2024
1856ef1
.
songkg7 Jun 28, 2024
127566a
.
songkg7 Jun 28, 2024
eb1cd0c
.
songkg7 Jun 28, 2024
91c8ec8
.
songkg7 Jun 28, 2024
2f3e103
.
songkg7 Jun 28, 2024
639a4c3
.
songkg7 Jun 28, 2024
6bf00a8
.
songkg7 Jun 28, 2024
f542c8c
.
songkg7 Jun 28, 2024
4538e01
.
songkg7 Jun 28, 2024
f17b92a
.
songkg7 Jun 28, 2024
86373da
.
songkg7 Jun 28, 2024
95174b3
.
songkg7 Jun 28, 2024
fd58969
.
songkg7 Jun 28, 2024
ec3152b
.
songkg7 Jun 28, 2024
d5d6175
.
songkg7 Jun 28, 2024
2df26b3
.
songkg7 Jun 28, 2024
c7d75a1
.
songkg7 Jun 28, 2024
2241b5a
.
songkg7 Jun 28, 2024
c975654
.
songkg7 Jun 28, 2024
eb47910
[CodeFactor] Apply fixes
code-factor Jun 28, 2024
762534e
.
songkg7 Jun 28, 2024
b296269
.
songkg7 Jun 28, 2024
96574ca
.
songkg7 Jun 28, 2024
348cc30
.
songkg7 Jun 28, 2024
3c1cc25
.
songkg7 Jun 28, 2024
7b092e5
.
songkg7 Jun 28, 2024
b256dbe
.
songkg7 Jun 28, 2024
d1b564c
.
songkg7 Jun 28, 2024
bf2915e
.
songkg7 Jun 28, 2024
c2574dc
.
songkg7 Jun 28, 2024
a01e23c
.
songkg7 Jun 28, 2024
c7f1155
.
songkg7 Jun 28, 2024
056d5bd
.
songkg7 Jun 28, 2024
bbc8948
.
songkg7 Jun 28, 2024
3c1d4b3
.
songkg7 Jun 28, 2024
ba1c6d7
.
songkg7 Jun 28, 2024
a10cedf
.
songkg7 Jun 28, 2024
3290923
.
songkg7 Jun 28, 2024
fa9935c
.
songkg7 Jun 28, 2024
d57331e
.
songkg7 Jun 28, 2024
71ae94f
.
songkg7 Jun 29, 2024
a0f14b3
.
songkg7 Jun 29, 2024
cf004b8
.
songkg7 Jun 29, 2024
6b958af
.
songkg7 Jun 29, 2024
a3ed467
.
songkg7 Jun 29, 2024
bc307ef
.
songkg7 Jun 29, 2024
7865caa
.
songkg7 Jun 29, 2024
4026905
.
songkg7 Jun 29, 2024
6c41935
.
songkg7 Jun 29, 2024
603e5e7
.
songkg7 Jun 29, 2024
32b8e19
.
songkg7 Jun 29, 2024
9d41db9
.
songkg7 Jun 29, 2024
ed16efd
.
songkg7 Jun 29, 2024
52950bc
.
songkg7 Jun 29, 2024
63962e4
.
songkg7 Jun 29, 2024
a1f553b
.
songkg7 Jun 29, 2024
fd77873
.
songkg7 Jun 29, 2024
028f2ea
.
songkg7 Jun 29, 2024
00a6af2
.
songkg7 Jun 29, 2024
966b14e
.
songkg7 Jun 29, 2024
26223a9
.
songkg7 Jun 29, 2024
2ab938a
Update README.md
songkg7 Jun 30, 2024
50b0715
.
songkg7 Jun 30, 2024
5b47506
.
songkg7 Jun 30, 2024
53c42b3
.
songkg7 Jun 30, 2024
c82f997
.
songkg7 Jun 30, 2024
7ea22b3
.
songkg7 Jun 30, 2024
1878a07
.
songkg7 Jun 30, 2024
9b5b120
.
songkg7 Jun 30, 2024
ab341d6
.
songkg7 Jun 30, 2024
5a246c1
.
songkg7 Jun 30, 2024
3390695
Update README.md
songkg7 Jun 30, 2024
edb0e65
.
songkg7 Jun 30, 2024
5db4751
Merge branch 'main' into feat-docusaurus
songkg7 Jul 2, 2024
efa1543
ci: yarn
songkg7 Jul 4, 2024
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
23 changes: 0 additions & 23 deletions .circleci/config.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,9 +25,10 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. MacOS]

- OS: [e.g. MacOS]
- Obsidian version [e.g 1.14.1]
- O2 Plugin version [e.g. 1.2.x]
- O2 Plugin version [e.g. 1.2.x]

**Additional context**
Add any other context about the problem here.
4 changes: 3 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## PR Checklist
# Pull Request

## Checklist

Please check if your PR fulfills the following requirements:

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/auto-assign-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ on:
pull_request_target:
types: [opened, ready_for_review]

permissions: { }

jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]

2 changes: 2 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
branches:
- main

permissions: { }

env:
PLUGIN_NAME: o2

Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
branches: [ "main" ]

permissions: { }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify permissions explicitly for better security.

The permissions block is empty. It's a good practice to specify the minimum required permissions explicitly to follow the principle of least privilege.

- permissions: { }
+ permissions:
+   contents: read
+   pull-requests: write
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
permissions: { }
permissions:
contents: read
pull-requests: write


jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -20,5 +22,13 @@ jobs:
run: npm install
- name: Run tests and collect coverage
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

- uses: actions/checkout@main
- uses: codecov/codecov-action@v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to use the latest version of actions/checkout.

The PR summary mentions updating the checkout action to v4, but the code still uses the old version v3.

- uses: actions/checkout@v3
+ uses: actions/checkout@v4

Committable suggestion was skipped due to low confidence.

with:
# fail_ci_if_error: true # optional (default = false)
# files: ./coverage1.xml,./coverage2.xml # optional
# flags: unittests # optional
# name: codecov-umbrella # optional
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
26 changes: 16 additions & 10 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,35 @@ name: Lint Code Base

on:
push:
branches-ignore: [main]
branches-ignore: [ main ]
pull_request:
branches: [main]
branches: [ main ]

permissions: { }

jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
- name: Super-linter
uses: super-linter/super-linter@v6.6.0 # x-release-please-version
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# temporarily disable this until we can fix the errors
# https://github.com/github/super-linter/discussions/2745
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_JAVASCRIPT_STANDARD: "false"
VALIDATE_TYPESCRIPT_STANDARD: "false"
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 20.5.0
nodejs lts
15 changes: 8 additions & 7 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ decisions when appropriate.

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
Examples of representing our community include using an official email address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand All @@ -115,14 +115,15 @@ the community.
## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
version 2.0, available
at [contributor-covenant.org](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
For answers to common questions about this code of conduct, see the FAQ
at [contributor-covenant.org/faq](https://www.contributor-covenant.org/faq).
Translations are available
at [contributor-covenant.org/translations](https://www.contributor-covenant.org/translations).
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,19 @@ your jekyll project (ex: /Users/user1/Documents/GitHub/user1.github.io)

- jekyllPath is the path of your jekyll project (ex: /Users/user1/Documents/GitHub/user1.github.io).
- Attachments will be copied by the date under the `assets/img/<yyyy-MM-dd>` folder.
- Auto create folders: If enabled, the plugin will automatically create the necessary folders if they do not exist. You can toggle this setting in the plugin settings tab.
- Auto create folders: If enabled, the plugin will automatically create the necessary folders if they do not exist. You
can toggle this setting in the plugin settings tab.

#### Syntax

| Feature | Obsidian (AS-IS) | Jekyll Chirpy (TO-BE) | Description |
|----------------------|---------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------|
| Wiki link | [[What is Obsidian?]] | What is Obsidian? |
| Wiki link | [[What is Obsidian?]] | What is Obsidian? | |
| Image | ![[NewJeans.png]] | `![image](/assets/img/<yyyy-MM-dd>-<title>/NewJeans.png)` | `yyyy-MM-dd` is replaced by the date of converting |
| Resize image (width) | ![[NewJeans.png&#124;100]] | `![image](/assets/img/<yyyy-MM-dd>-<title>/NewJeans.png){: width="100" }` |
| Resize image (w & h) | ![[NewJeans.png&#124;100x200]] | `![image](/assets/img/<yyyy-MM-dd>-<title>/NewJeans.png){: width="100" height="200" }` |
| Embeds | ![[Obsidian#This is Obsidian!]] | Obsidian |
| Comments | %% This is a comment %% | `<!-- This is a comment -->` |
| Resize image (width) | ![[NewJeans.png&#124;100]] | `![image](/assets/img/<yyyy-MM-dd>-<title>/NewJeans.png){: width="100" }` | |
| Resize image (w & h) | ![[NewJeans.png&#124;100x200]] | `![image](/assets/img/<yyyy-MM-dd>-<title>/NewJeans.png){: width="100" height="200" }` | |
| Embeds | ![[Obsidian#This is Obsidian!]] | Obsidian | |
| Comments | %% This is a comment %% | `<!-- This is a comment -->` | |
| Footnotes | [^1] | `[^fn-nth-1]` | Currently, only supports the simple syntax |
| Curly braces | {{ content }} | `{% raw %}{{ content }}{% endraw %}` | Optional |

Expand All @@ -78,7 +79,8 @@ issue.

## Contributing

Pull requests are always welcome! For major changes, please open an issue(or discussion) first to discuss what you would like to
Pull requests are always welcome! For major changes, please open an issue(or discussion) first to discuss what you would
like to
change.

For the detailed information about building and developing O2,
Expand Down
18 changes: 9 additions & 9 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.ts?$': 'ts-jest',
},
transformIgnorePatterns: ['<rootDir>/node_modules'],
moduleDirectories: ['node_modules', 'src'],
collectCoverage: true,
coverageReporters: ['text', 'cobertura'],
preset: 'ts-jest',
testEnvironment: 'node',
transform: {
'^.+\\.ts?$': 'ts-jest'
},
transformIgnorePatterns: ['<rootDir>/node_modules'],
moduleDirectories: ['node_modules', 'src'],
collectCoverage: true,
coverageReporters: ['text', 'cobertura']
};
Loading
Loading