Skip to content

Commit

Permalink
chore: some typo and format (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitiho committed Feb 2, 2023
1 parent fa97e9d commit 6c6b103
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/integrations/docsearch.ts
Expand Up @@ -92,7 +92,7 @@ export default defineNuxtPlugin(() => {
...userOptions.searchParameters
},
/**
* Transform items into relative URL format (compatibiltiy with Vue Router).
* Transform items into relative URL format (compatibility with Vue Router).
*/
transformItems: userOptions.transformItems
? userOptions.transformItems
Expand Down
2 changes: 1 addition & 1 deletion app/module.ts
Expand Up @@ -15,7 +15,7 @@ export default defineNuxtModule({
},
configKey: 'docus'
},
setup(_, nuxt) {
setup (_, nuxt) {
if (nuxt.options?.runtimeConfig?.public?.algolia?.docSearch) {
addPlugin({
src: resolveThemeDir('integrations/docsearch.ts')
Expand Down
46 changes: 31 additions & 15 deletions components/app/Logo.vue
Expand Up @@ -2,37 +2,53 @@
<svg viewBox="0 0 167 44" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M60 34.5945H70.2569C78.3172 34.5945 83.064 29.6369 83.064 21.1959V21.159C83.064 12.7365 78.2986 8 70.2569 8H60V34.5945ZM65.6217 29.987V12.5891H69.5867C74.5197 12.5891 77.3306 15.63 77.3306 21.1775V21.2143C77.3306 26.9645 74.6128 29.987 69.5867 29.987H65.6217Z"
fill="currentColor" />
fill="currentColor"
/>
<path
d="M95.1966 35C101.228 35 105.081 31.1666 105.081 24.716V24.6792C105.081 18.284 101.153 14.4321 95.178 14.4321C89.2211 14.4321 85.312 18.3208 85.312 24.6792V24.716C85.312 31.1481 89.1281 35 95.1966 35ZM95.2152 30.7795C92.5346 30.7795 90.8407 28.5863 90.8407 24.716V24.6792C90.8407 20.8642 92.5532 18.6526 95.178 18.6526C97.8213 18.6526 99.5525 20.8642 99.5525 24.6792V24.716C99.5525 28.5679 97.8585 30.7795 95.2152 30.7795Z"
fill="currentColor" />
fill="currentColor"
/>
<path
d="M116.823 35C122.147 35 125.59 31.7195 125.851 27.4068V27.2962H120.788L120.769 27.4621C120.397 29.4526 119.038 30.7795 116.86 30.7795C114.179 30.7795 112.504 28.5863 112.504 24.716V24.6976C112.504 20.9195 114.179 18.6526 116.841 18.6526C119.094 18.6526 120.415 20.0901 120.751 21.97L120.788 22.1358H125.832V22.0068C125.628 17.7311 122.184 14.4321 116.767 14.4321C110.792 14.4321 106.975 18.3577 106.975 24.6792V24.6976C106.975 31.0744 110.736 35 116.823 35Z"
fill="currentColor" />
fill="currentColor"
/>
<path
d="M135.08 35C138.095 35 140.143 33.5993 141.167 31.3324H141.278V34.5945H146.714V14.8375H141.278V26.1904C141.278 28.7706 139.733 30.5399 137.295 30.5399C134.856 30.5399 133.628 29.0471 133.628 26.4669V14.8375H128.192V27.5911C128.192 32.2171 130.687 35 135.08 35Z"
fill="currentColor" />
fill="currentColor"
/>
<path
d="M158.27 35C163.407 35 167 32.4567 167 28.5863V28.5679C167 25.656 165.287 24.0341 161.118 23.1679L157.73 22.4491C155.719 22.0253 155.031 21.3618 155.031 20.3481V20.3297C155.031 19.058 156.203 18.2287 158.083 18.2287C160.094 18.2287 161.267 19.2976 161.453 20.7167L161.471 20.8642H166.479V20.6799C166.348 17.215 163.389 14.4321 158.083 14.4321C153.001 14.4321 149.725 16.8648 149.725 20.6246V20.643C149.725 23.5918 151.68 25.5085 155.552 26.3195L158.94 27.0198C160.894 27.4437 161.564 28.0519 161.564 29.1024V29.1208C161.564 30.3925 160.317 31.185 158.27 31.185C156.092 31.185 154.919 30.2819 154.565 28.7338L154.528 28.5679H149.223L149.241 28.7338C149.669 32.4751 152.741 35 158.27 35Z"
fill="currentColor" />
<mask id="mask0_109_36" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="44" height="44">
<path fill-rule="evenodd" clip-rule="evenodd"
fill="currentColor"
/>
<mask
id="mask0_109_36"
style="mask-type:alpha"
maskUnits="userSpaceOnUse"
x="0"
y="0"
width="44"
height="44"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M0 21.8104C0 9.76479 9.80347 0 21.8967 0C33.99 0 43.7935 9.76479 43.7935 21.8104C43.7935 33.8559 33.99 43.6207 21.8967 43.6207H0V21.8104ZM19.5294 17.0944C22.1442 17.0944 24.2641 19.2059 24.2641 21.8104C24.2641 24.4148 22.1442 26.526 19.5294 26.526C16.9147 26.526 14.7948 24.4148 14.7948 21.8101C14.7948 19.2059 16.9147 17.0944 19.5294 17.0944V17.0944ZM38.4674 21.8104C38.4674 19.2059 36.3475 17.0944 33.7328 17.0944C31.1183 17.0944 28.9984 19.2059 28.9984 21.8104C28.9984 24.4148 31.1183 26.526 33.7328 26.526C36.3475 26.526 38.4674 24.4148 38.4674 21.8101V21.8104Z"
fill="white" />
fill="white"
/>
</mask>
<g mask="url(#mask0_109_36)">
<path fill-rule="evenodd" clip-rule="evenodd"
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M0 21.8104C0 9.76479 9.80347 0 21.8967 0C33.99 0 43.7935 9.76479 43.7935 21.8104C43.7935 33.8559 33.99 43.6207 21.8967 43.6207H0V21.8104ZM19.5294 17.0944C22.1442 17.0944 24.2641 19.2059 24.2641 21.8104C24.2641 24.4148 22.1442 26.526 19.5294 26.526C16.9147 26.526 14.7948 24.4148 14.7948 21.8101C14.7948 19.2059 16.9147 17.0944 19.5294 17.0944V17.0944ZM38.4674 21.8104C38.4674 19.2059 36.3475 17.0944 33.7328 17.0944C31.1183 17.0944 28.9984 19.2059 28.9984 21.8104C28.9984 24.4148 31.1183 26.526 33.7328 26.526C36.3475 26.526 38.4674 24.4148 38.4674 21.8101V21.8104Z"
fill="currentColor" />
fill="currentColor"
/>
<path
d="M9.9987e-06 43.6206H-0.156525V43.7762H9.9987e-06V43.6206ZM21.8967 -0.156006C9.71704 -0.156006 -0.156525 9.67861 -0.156525 21.8106H0.156545C0.156545 9.8508 9.88991 0.155828 21.8967 0.155828V-0.156006ZM43.9497 21.8103C43.9497 9.67861 34.0764 -0.156006 21.8967 -0.156006V0.155828C33.9036 0.155828 43.6369 9.8508 43.6369 21.8103H43.9497ZM21.8967 43.7762C34.0764 43.7762 43.9497 33.9419 43.9497 21.8103H43.6369C43.6369 33.7697 33.9036 43.4647 21.8967 43.4647V43.7762V43.7762ZM9.9987e-06 43.7762H21.8967V43.4647H9.9987e-06V43.7762ZM-0.156525 21.8103V43.6206H0.156545V21.8103H-0.156525ZM24.4203 21.8103C24.4203 19.1197 22.2306 16.9387 19.5294 16.9387V17.2502C22.0577 17.2502 24.1075 19.2916 24.1075 21.8103H24.4203V21.8103ZM19.5294 26.6816C22.2306 26.6816 24.4203 24.5005 24.4203 21.8103H24.1075C24.1075 24.3286 22.058 26.37 19.5294 26.37V26.6816V26.6816ZM14.6385 21.8106C14.6385 24.5008 16.8282 26.6819 19.5294 26.6819V26.3703C17.0011 26.3703 14.9513 24.3289 14.9513 21.8106H14.6385ZM19.5297 16.9387C16.8285 16.9387 14.6388 19.1197 14.6388 21.8103H14.9516C14.9516 19.2916 17.0011 17.2502 19.5297 17.2502V16.9387ZM33.7331 17.2502C36.2617 17.2502 38.3112 19.2916 38.3112 21.8103H38.624C38.624 19.1197 36.4343 16.9387 33.7331 16.9387V17.2502V17.2502ZM29.155 21.8103C29.155 19.2916 31.2045 17.2502 33.7328 17.2502V16.9387C31.0319 16.9387 28.8422 19.1197 28.8422 21.8103H29.155ZM33.7328 26.37C31.2045 26.37 29.155 24.3286 29.155 21.8103H28.8422C28.8422 24.5005 31.0319 26.6816 33.7328 26.6816V26.37ZM38.3109 21.8106C38.3109 24.3289 36.2614 26.3703 33.7328 26.3703V26.6819C36.434 26.6819 38.6237 24.5008 38.6237 21.8106H38.3109Z"
fill="currentColor" />
fill="currentColor"
/>
</g>
</svg>




</template>

<style lang="ts" scoped>
Expand Down
12 changes: 6 additions & 6 deletions components/docs/EditOnLink.vue
Expand Up @@ -11,23 +11,23 @@ export default defineComponent({
*/
owner: {
type: String,
default: () => useAppConfig()?.docus.github?.owner,
default: () => useAppConfig()?.docus?.github?.owner,
required: false
},
/**
* Repository name.
*/
repo: {
type: String,
default: () => useAppConfig()?.docus.github?.repo,
default: () => useAppConfig()?.docus?.github?.repo,
required: false
},
/**
* The branch to use for the edit link.
*/
branch: {
type: String,
default: () => useAppConfig()?.docus.github?.branch,
default: () => useAppConfig()?.docus?.github?.branch,
required: false
},
/**
Expand All @@ -37,7 +37,7 @@ export default defineComponent({
*/
dir: {
type: String,
default: () => useAppConfig()?.docus.github?.dir,
default: () => useAppConfig()?.docus?.github?.dir,
required: false
},
/**
Expand All @@ -64,15 +64,15 @@ export default defineComponent({
contentDir: {
type: String,
required: false,
default: () => useAppConfig()?.docus.github?.dir || 'content'
default: () => useAppConfig()?.docus?.github?.dir || 'content'
},
/**
* Send to an edit page or not.
*/
edit: {
type: Boolean,
required: false,
default: () => useAppConfig()?.docus.github?.edit
default: () => useAppConfig()?.docus?.github?.edit
}
},
setup (props) {
Expand Down

0 comments on commit 6c6b103

Please sign in to comment.