forked from ElMassimo/vite_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation website (ElMassimo#3)
- Loading branch information
Showing
16 changed files
with
3,825 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"index_name": "vite_rails", | ||
"start_urls": [ | ||
{ | ||
"url": "https://vite-rails.netlify.app/api/options.html", | ||
"selectors_key": "options", | ||
"tags": ["options"], | ||
"page_rank": 1 | ||
}, | ||
{ | ||
"url": "https://vite-rails.netlify.app/api/", | ||
"selectors_key": "api", | ||
"tags": ["api"], | ||
"page_rank": 2 | ||
}, | ||
{ | ||
"url": "https://vite-rails.netlify.app/", | ||
"tags": ["guide"], | ||
"page_rank": 3 | ||
} | ||
], | ||
"stop_urls": [ | ||
"https://vite-rails.netlify.app/introduction.html", | ||
"https://vite-rails.netlify.app/installation.html", | ||
"https://vite-rails.netlify.app/guide/index.html", | ||
"https://vite-rails.netlify.app/guide/essentials/actions.html", | ||
"https://vite-rails.netlify.app/guide/essentials/finders.html", | ||
"https://vite-rails.netlify.app/guide/essentials/querying.html", | ||
"https://vite-rails.netlify.app/guide/essentials/assertions.html", | ||
"https://vite-rails.netlify.app/guide/essentials/aliases.html", | ||
"https://vite-rails.netlify.app/guide/essentials/current-context.html", | ||
"https://vite-rails.netlify.app/guide/essentials/injection.html", | ||
"https://vite-rails.netlify.app/guide/advanced/assertions.html", | ||
"https://vite-rails.netlify.app/guide/advanced/composition.html", | ||
"https://vite-rails.netlify.app/guide/advanced/debugging.html", | ||
"https://vite-rails.netlify.app/guide/advanced/design-patterns.html", | ||
"https://vite-rails.netlify.app/guide/advanced/filtering.html", | ||
"https://vite-rails.netlify.app/guide/advanced/synchronization.html", | ||
"https://vite-rails.netlify.app/guide/cucumber/index.html" | ||
], | ||
"selectors": { | ||
"default": { | ||
"lvl0": { | ||
"selector": "p.sidebar-heading.open", | ||
"global": true, | ||
"default_value": "Guide" | ||
}, | ||
"lvl1": ".content h1", | ||
"lvl2": ".content h2", | ||
"lvl3": ".content h3", | ||
"lvl4": ".content h4", | ||
"lvl5": ".content h5", | ||
"text": ".content p, .content li", | ||
"lang": { | ||
"selector": "/html/@lang", | ||
"type": "xpath", | ||
"global": true | ||
} | ||
}, | ||
"api": { | ||
"lvl0": { | ||
"selector": "p.sidebar-heading.open", | ||
"global": true, | ||
"default_value": "API" | ||
}, | ||
"lvl1": ".content h2", | ||
"lvl2": ".content h3", | ||
"text": ".content p, .content li", | ||
"lang": { | ||
"selector": "/html/@lang", | ||
"type": "xpath", | ||
"global": true | ||
} | ||
}, | ||
"options": { | ||
"lvl0": { | ||
"selector": "p.sidebar-heading.open", | ||
"global": true, | ||
"default_value": "Selectors" | ||
}, | ||
"lvl1": ".content h1", | ||
"lvl2": ".content h2", | ||
"lvl3": ".content ul li code", | ||
"text": ".content p, .content li", | ||
"lang": { | ||
"selector": "/html/@lang", | ||
"type": "xpath", | ||
"global": true | ||
} | ||
} | ||
}, | ||
"scrape_start_urls": true, | ||
"strip_chars": " .,;:#", | ||
"custom_settings": { | ||
"attributesForFaceting": [ | ||
"lang" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// https://eslint.org/docs/user-guide/configuring | ||
|
||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
node: true, | ||
}, | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser' | ||
}, | ||
extends: [ | ||
'plugin:vue/recommended', // https://github.com/vuejs/eslint-plugin-vue | ||
'@vue/standard', // https://github.com/standard/standard/blob/master/docs/RULES-en.md | ||
], | ||
// required to lint *.vue files | ||
plugins: [ | ||
'vue', | ||
'@typescript-eslint', | ||
], | ||
// add your custom rules here | ||
rules: { | ||
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: false }], | ||
'comma-dangle': ['error', 'always-multiline'], | ||
'no-console': process.env.NODE_ENV === 'production' ? ['error', { allow: ['warn', 'error', 'info'] }] : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
|
||
// Vue Rules from eslint-plugin-vue | ||
'vue/attribute-hyphenation': ['error', 'never', { | ||
ignore: [ | ||
'stroke-dasharray', | ||
'stroke-width', | ||
], | ||
}], | ||
'vue/html-closing-bracket-spacing': ['error', { | ||
selfClosingTag: 'never', | ||
}], | ||
'vue/max-attributes-per-line': ['error', { | ||
singleline: 5, | ||
multiline: { | ||
max: 1, | ||
allowFirstLine: false, | ||
}, | ||
}], | ||
'vue/multiline-html-element-content-newline': 0, | ||
'vue/no-v-html': 0, | ||
'vue/singleline-html-element-content-newline': 0, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// @ts-check | ||
|
||
/** | ||
* @type {import('vitepress').UserConfig} | ||
*/ | ||
module.exports = { | ||
title: 'Vite ⚡ Rails', | ||
description: 'Bringing joy to your frontend experience', | ||
head: [ | ||
[ | ||
'style', | ||
{}, | ||
'img { border-radius: 10px }' + 'h1.title { margin-left: 0.5em }', | ||
], | ||
], | ||
themeConfig: { | ||
repo: 'ElMassimo/vite_rails', | ||
docsDir: 'docs', | ||
docsBranch: 'main', | ||
editLinks: true, | ||
editLinkText: 'Suggest changes to this page', | ||
|
||
nav: [ | ||
{ text: 'Guide', link: '/guide/' }, | ||
{ text: 'Config Reference', link: '/config/' }, | ||
{ | ||
text: 'Changelog', | ||
link: | ||
'https://github.com/ElMassimo/vite_rails/blob/main/CHANGELOG.md', | ||
}, | ||
], | ||
|
||
sidebar: { | ||
'/config/': 'auto', | ||
// catch-all fallback | ||
'/': [ | ||
{ | ||
text: 'Guide', | ||
children: [ | ||
{ | ||
text: 'Introduction', | ||
link: '/guide/introduction', | ||
}, | ||
{ | ||
text: 'Getting Started', | ||
link: '/guide/', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:root { | ||
--c-brand: #cc0000; | ||
--c-brand-light: #d53f3f; | ||
|
||
--bg-colored-light: #f3f7f7; | ||
} | ||
|
||
.custom-block.custom-block.tip { | ||
background-color: var(--bg-colored-light); | ||
border-color: #00c7cc; | ||
} | ||
|
||
.custom-block.custom-block.tip a { | ||
color: #007d80; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Theme from 'vitepress/theme' | ||
|
||
import '../styles/styles.css' | ||
|
||
export default Theme |
Oops, something went wrong.