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

feat!: 1.0 release #577

Merged
merged 175 commits into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
0c9dbb4
fix: quick html error
atinux Jul 13, 2021
3af9dc5
chore(reset): reset repository (fresh start for v3) (#547)
Tahul Apr 22, 2022
8fbf504
feat(imports): update imports (auto-imports breaks from node_modules)
Tahul Apr 26, 2022
8606800
chore(cleanup): cleanup install-state
Tahul Apr 26, 2022
d6a953a
chore(release): release 3.0.0-beta.2
Tahul Apr 26, 2022
2ba101e
fix(imports): fix missing import
Tahul Apr 26, 2022
30dbf8c
chore(release): 3.0.0-beta.3
Tahul Apr 26, 2022
cf7d290
fix(tailwind): fix tailwind setup
Tahul Apr 26, 2022
56cb34d
chore(release): 3.0.0-beta.4
Tahul Apr 26, 2022
b4f6e2d
feat(middleware): update data fetching to use middlewares (#548)
Tahul Apr 27, 2022
ac9fc9f
chore(deps): upgrade deps
Tahul Apr 28, 2022
cb3b2e2
feat(vueuse): add @vueuse/nuxt
Tahul Apr 28, 2022
570501c
feat(css): add surface and blurry-surface utils
Tahul Apr 28, 2022
be34fca
feat(composables): add menu & ua composables
Tahul Apr 28, 2022
fe2e716
feat(nav): mobile navigation import
Tahul Apr 28, 2022
83a8ebb
feat(navigation): update navigation ; few fixes on components
Tahul Apr 28, 2022
ff5dff2
docs(content): update content
Tahul Apr 28, 2022
4457b4b
feat(meta): use meta tags from _theme for pages
Tahul Apr 28, 2022
56a1eec
feat(theme): move theme to dir & update package exports
Tahul Apr 28, 2022
c1f680f
feat(toc): allow cross directory via page prev/next
Tahul Apr 28, 2022
ccd242c
feat(update): prepare docs ; lighten and update content
Tahul Apr 29, 2022
f0fe1a0
fix(build): fix deployment
Tahul Apr 29, 2022
14b61ff
feat(ci): add ci scripts back
Tahul Apr 29, 2022
904f4c2
fix(ci): fix ci
Tahul Apr 29, 2022
8fbabda
chore(release): 3.0.0-beta.6
Tahul Apr 29, 2022
b89d4cb
chore(release): 3.0.0-beta.7
Tahul Apr 29, 2022
4578705
fix(imports): update imports
Tahul Apr 29, 2022
24555a2
feat(prepare): prepare release (lots of fixes ; update content)
Tahul May 2, 2022
adc1716
chore(version): drop -beta.x prefix ; now using docus-edge
Tahul May 2, 2022
9872dec
feat(update): improve theme (mobile nav, fix plugin imports...)
Tahul May 2, 2022
053e7aa
feat(config): add clipboard to transpile list
Tahul May 2, 2022
d300fd8
feat(update): improve theme (drop clipboardjs for vueuse/useClipboard)
Tahul May 2, 2022
6159406
fix(terminal): fix import
Tahul May 2, 2022
439b6cb
fix(warn): fix autoprefixer warn in console
Tahul May 2, 2022
3874aac
feat(console): output docus version to console on boot
Tahul May 2, 2022
8d43b97
fix(imports): fix imports
Tahul May 2, 2022
d04aa73
fix(imports): update imports
Tahul May 2, 2022
4f3294a
feat(theme): update theme globally ; fix layouts and improve responsi…
Tahul May 3, 2022
0e8e945
fix(theme): add explicit imports for computed (#553)
clemcode May 3, 2022
ebb042e
feat(prettier): add prettier & prettier-plugin-tailwindcss
Tahul May 3, 2022
e744fed
chore(deps): upgrade deps (content)
Tahul May 3, 2022
b77a6e9
feat(docus): always disable debug
Tahul May 3, 2022
e57acb5
feat(hero): update hero
Tahul May 3, 2022
117517c
feat(queries): update queries (server-only & double-check)
Tahul May 3, 2022
0b5fa84
fix(imports): try to fix useClipboard import
Tahul May 3, 2022
5a372b2
fix(imports): fix @vueuse/core imports
Tahul May 3, 2022
7cfed8d
feat(theme): update theme (and deps)
Tahul May 4, 2022
e4a48be
feat(fetching): improve middlewares
Tahul May 4, 2022
6433902
chore(deps): upgrade content
Tahul May 4, 2022
e2ed0bd
fix(imports): fix impot in TabsHeader
Tahul May 4, 2022
13352b6
fix(..): same
Tahul May 4, 2022
98995e0
fix: use srcDir and push tailwindcss content
atinux May 4, 2022
4a9ba76
fix: only contentis enough
atinux May 4, 2022
af3f0b7
fix(theme): DocsAside headings typography
bdrtsky May 4, 2022
dd806cf
feat(theme): update theme from docus.dev
Tahul May 4, 2022
f8419d3
Merge branch 'dev' of github.com:nuxtlabs/docus into dev
Tahul May 4, 2022
36cafbc
fix(navbar): hide navbarcenter
Tahul May 4, 2022
1da1788
fix(font): fix head key nesting
Tahul May 4, 2022
df9395b
feat: add docus to public runtimeConfig
atinux May 4, 2022
764fe9f
chore: Nuxt 3 -> Docus
atinux May 4, 2022
651fecb
feat(theme): update theme
Tahul May 4, 2022
4b2e74c
Merge branch 'dev' of github.com:nuxtlabs/docus into dev
Tahul May 4, 2022
d5783fd
fix(social-icons): fix social links
Tahul May 4, 2022
6005351
chore: update colors and tweaks ui
atinux May 4, 2022
6e2ba5c
fix(imports): fix missing imports
Tahul May 5, 2022
edbdcd3
feat: add loading bar
atinux May 5, 2022
2ebc620
fix: explicit import of defineNuxtPlugin
atinux May 5, 2022
e6f6174
fix: test transpile
atinux May 5, 2022
ce45415
fix: disable build.transpile for now
atinux May 5, 2022
99ae5b7
fix: correct import
atinux May 5, 2022
a1bdea9
feat: github releases (#552)
farnabaz May 5, 2022
e8f5d04
feat(list): fix list
Tahul May 5, 2022
02ed145
fix: use gray instead of primary for list
atinux May 5, 2022
0d08082
fix: useDocus import
atinux May 5, 2022
c3e2431
fix: add import for useUnwrap
atinux May 5, 2022
5e70e74
fix: missing import again
atinux May 5, 2022
b689431
chore: update aside and navbar navigations (#555)
May 5, 2022
cc1db38
fix(imports): fix missing imports
Tahul May 5, 2022
00cc92a
fix(log): remove extraneous logging
Tahul May 5, 2022
d78c65e
fix(imports): add missing import
Tahul May 5, 2022
ee76e50
fix(imports): add missing import
Tahul May 5, 2022
ceb414c
refactor(split): split between base and theme ; support theme config key
Tahul May 6, 2022
d4d6e8e
feat(theme): update theme
Tahul May 6, 2022
aeee7cb
feat(github): fetch only 1 release from github middleware
Tahul May 6, 2022
a2788ca
feat(nav): improve nav
Tahul May 6, 2022
bc11c02
feat(repository): upgrade repository to use pnpm and turborepo
Tahul May 6, 2022
d22d650
feat(release): preparing for release
Tahul May 6, 2022
642d111
chore(package): update package.json
Tahul May 6, 2022
39ed417
ci(ci): try to fix ci via workaround
Tahul May 6, 2022
a503cb8
ci(fix): same
Tahul May 6, 2022
a5f8613
ci(test): add some loggin
Tahul May 6, 2022
65ef5b3
ci(again): logging
Tahul May 6, 2022
e728187
fix(ci): rewrite :vercel commands
Tahul May 6, 2022
59418f4
feat(#557): reapply fix/layouts changes on new structure
Tahul May 7, 2022
4100e5e
feat(theme): improve theme
Tahul May 7, 2022
a69cfdf
chore(release): first edge release for @docus/base & @docus/docs-theme
Tahul May 7, 2022
271d51f
chore(ci): update ci command
Tahul May 7, 2022
1eedf17
fix(debug): remove debugging
Tahul May 7, 2022
9cb2b4b
chore(ci): uncomment publishing
Tahul May 7, 2022
98f42fc
chore(release): use release:edge
Tahul May 7, 2022
686da41
chore(ci): fix turbo releasee:edge command
Tahul May 7, 2022
02aa6c2
fix(ci): fully fix ci for edge packages
Tahul May 7, 2022
4787546
fix(imports): fix missing imports
Tahul May 7, 2022
56f6afa
feat(theme): improve theme
Tahul May 8, 2022
2dedb4e
feat(releases): fix releases page fetching (strange issue with useAsy…
Tahul May 8, 2022
c4b086b
ci(edge): update ci so each locally used package uses edge versions a…
Tahul May 9, 2022
f48788b
ci(fix): ci fixed; release again
Tahul May 9, 2022
577035a
feat(theme): update theme
Tahul May 9, 2022
8e3341b
feat(theme): update color palette (from nuxt) and update few components
Tahul May 9, 2022
c8ebc08
fix: forgotten import
atinux May 9, 2022
92fefe1
feat(nav): update nav ; use rc.3
Tahul May 10, 2022
813e5ae
chore(docs-theme): upgrade color-mode
atinux May 10, 2022
484b5e4
fix: improve titleTemplate
atinux May 10, 2022
c76784d
fix: set class in logo instead
atinux May 10, 2022
d4b0b01
fix: remove height in logo
atinux May 10, 2022
df799ba
feat(404): add 404 pags to docs-theme
Tahul May 10, 2022
6a5ccb3
chore(lock): fix lockfile
Tahul May 10, 2022
5553597
fix: description is not a shortcut (yet)
atinux May 10, 2022
7e0d238
fix: better handle cover image
atinux May 10, 2022
78a5e72
feat(center): fix active-link by implementing it locally -_-
Tahul May 10, 2022
a93f697
fix(navigation): fix navigation links weight
Tahul May 10, 2022
7171bd0
fix(navigation): same
Tahul May 10, 2022
7a3e985
feat(code): update codeinline
Tahul May 10, 2022
535d74f
fix: code in alert should have transparent bg
atinux May 11, 2022
9ea203f
fix(build): fix build and pin everything to rc.3
Tahul May 11, 2022
e76ec17
chore(deps): fix defu to 6.0.0 in base
Tahul May 11, 2022
18991a3
feat: github module (#563)
Tahul May 13, 2022
88db15e
chore(deps): upgrade deps
Tahul May 12, 2022
89b484b
chore(deps): upgrade deps
Tahul May 13, 2022
c48dfdf
feat(docs-theme): add aria labels to mobile navigation button (#562)
clemcode May 16, 2022
86e80b6
feat: github module (#566)
Tahul May 18, 2022
f09d256
feat(up): update theme ; add features on releases (disabling button)
Tahul May 18, 2022
035ca31
fix(scrollbehavior): fix scrollBehavior w/ savedPosition
Tahul May 18, 2022
15d3841
fix(github): remark-github repository (#568)
farnabaz May 18, 2022
99bb31d
feat(theme): update theme
Tahul May 18, 2022
96ee5d9
chore: use local theme in development
atinux May 18, 2022
e7633c5
feat(docs-theme): better icon support
atinux May 18, 2022
d243942
chore(docs): improve styles
atinux May 18, 2022
ab7d8c3
chore(docs-theme): remove unused code
atinux May 18, 2022
3ca853f
feat: more style improvements and update to latest content
atinux May 18, 2022
d4e6a5f
feat(docs-theme): aside and mobile improvements on navigation
atinux May 19, 2022
eeaf7df
chore(docs-theme): improve navigation on mobile and fix first redirect
atinux May 19, 2022
ba5397e
chore(docs-theme): add IconDocus and Docus Logo
atinux May 19, 2022
efad9d5
feat(docs-theme): improve Icon component and landing page
atinux May 19, 2022
04e23c1
docs: improve TOC
atinux May 19, 2022
87c8a34
chore(docs-theme): add import and improve toc border
atinux May 19, 2022
813ef99
feat(docs-theme): simplify Icon and improve mobile nav
atinux May 19, 2022
e19037a
chore: upgrade content and fix prev/next style
atinux May 19, 2022
1a33690
chore: update margin for bottom
atinux May 19, 2022
d5a15d2
feat(theme): update theme; add fluid layout
Tahul May 19, 2022
f45e671
fix(fix): few fixes
Tahul May 19, 2022
02c9f6c
fix: add workaround for github releases (#569)
danielroe May 20, 2022
644f6b5
fix: update `<Markdown>` usage (#571)
farnabaz May 20, 2022
7774c70
feat(theme): update theme
Tahul May 23, 2022
c940473
feat(theme): update theme (packages + lint)
Tahul May 23, 2022
dd84e48
chore(deps): update tailwindcss module version
Tahul May 23, 2022
b436863
chore(landing): update landing layout to use `fluid`
Tahul May 23, 2022
f68d9c2
feat(code-inline): update inline code render
Tahul May 23, 2022
05ebe75
fix(css): fix prose-code inside surfaces
Tahul May 23, 2022
3bda6f1
chore: code style improvements
atinux May 23, 2022
31c8624
chore: reduce icon size
atinux May 23, 2022
ce419ee
feat(theme): make github module fully facultative ; improve theme str…
Tahul May 24, 2022
e018ede
feat(navigation): update navigation ; allow much more nested structures
Tahul May 24, 2022
117e98e
fix(releases): don't cache releases
Tahul May 24, 2022
96bc31e
fix(docs-theme): overflow hidden and video-player design
atinux May 24, 2022
8bc6c40
fix(helpers): fix navKeyFromPath
Tahul May 24, 2022
dce5a22
feat(theme): update theme (towards content release!à
Tahul May 24, 2022
a0efb08
fix(layouts): fix layouts (overflow already handled downstream)
Tahul May 24, 2022
dd2b22e
chore(docs-theme): ui improvements (#575)
benjamincanac Jun 9, 2022
921a586
fix(docs-theme): page content spacing without toc
benjamincanac Jun 9, 2022
59b8fe5
fix(docs-theme): releases meta background on mobile dark mode
benjamincanac Jun 9, 2022
3b33492
chore(docs): upgrade docs (#576)
Tahul Jun 10, 2022
57ef3b7
docs(content): update content / examples
Tahul Jun 10, 2022
9793ace
fix(block-hero): update block-hero
Tahul Jun 10, 2022
ef1a91c
docs: fix get-started link
Tahul Jun 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .editorconfig
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# editorconfig.org
root = true

[*]
Expand Down
13 changes: 3 additions & 10 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# Common
node_modules
dist
.output
.nuxt
coverage

# Docus

# Ignore sw.js as it's a generated file
sw.js
# Ignore every `plugin.js` as it's using <% %> syntaxes, that are not supported by ESLint
plugin.js
*.css
*.md
82 changes: 27 additions & 55 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,65 +2,37 @@ module.exports = {
root: true,
env: {
browser: true,
node: true
node: true,
},
extends: ['@nuxtjs/eslint-config-typescript', '@antfu', 'plugin:prettier-vue/recommended', 'prettier'],
settings: {
'import/ignore': ['vue'],
},
plugins: ['prettier'],
extends: [
'@nuxtjs',
'prettier',
'plugin:prettier/recommended',
'plugin:nuxt/recommended',
'@nuxtjs/eslint-config-typescript'
],
rules: {
// Vue rules
'vue/component-name-in-template-casing': [
semi: 'error',
'antfu/if-newline': 0,
'vue/static-class-names-order': 'off',
'vue/multi-word-component-names': 'off',
'vue/require-component-is': 'off',
'vue/no-multiple-template-root': 'off',
'vue/no-v-text-v-html-on-component': 'off',
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/semi': ['error'],
'@typescript-eslint/comma-dangle': ['error'],
'comma-dangle': 'error',
'no-unused-vars': 0,
'prettier-vue/prettier': [
'error',
'PascalCase',
{
registeredComponentsOnly: true
}
// Override all options of `prettier` here
// @see https://prettier.io/docs/en/options.html
// plugins: ['prettier-plugin-tailwindcss'],
printWidth: 180,
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
},
],
'vue/singleline-html-element-content-newline': [0],
'vue/multiline-html-element-content-newline': [0],
'vue/html-self-closing': [0],
'vue/no-v-html': [0],
'vue/max-attributes-per-line': [0],
'vue/html-closing-bracket-newline': [0],
'vue/html-indent': [0],
// Prettier rules
'max-len': [0, 120],
code: [0, 120],
'print-width': [0, 120],
'no-console': [1],
'space-before-function-paren': [0],
'arrow-parens': [0],
curly: [0],
'keyword-spacing': [0],
// TODO: Remove all configs below
//
// This is done in order to avoid src/admin/app
// Errors on multiple roots, as this is a Vue 3 project
// And Vue 3 allows multiple roots.
//
// Note:
// If you still have the error displayed, it means Vetur is trying
// To lint your file with Vue 2 configuration, to avoid that
// Add:
// 'vetur.validation.template': false,
// 'vetur.validation.script': false,
// 'vetur.validation.style': false,
// To your `settings.json`, from VSCode.
//
'vue/no-multiple-template-root': 0
},
// controlled by Volar
overrides: [
{
files: ['*.vue'],
rules: {
'@typescript-eslint/no-unused-vars': 'off'
}
}
]
}
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature-request.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

56 changes: 56 additions & 0 deletions .github/scripts/bump-edge.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { promises as fsp } from 'fs'
import { resolve } from 'path'
import { execSync } from 'child_process'

const packages = {
'@docus/base': 'npm:@docus/base-edge@',
'@docus/docs-theme': 'npm:@docus/docs-theme-edge@',
}

async function loadPackage(dir: string) {
const pkgPath = resolve(dir, 'package.json')

const data = JSON.parse(await fsp.readFile(pkgPath, 'utf-8').catch(() => '{}'))

const save = () => fsp.writeFile(pkgPath, `${JSON.stringify(data, null, 2)}\n`)

return {
dir,
data,
save,
}
}

function replaceWithEdge(pkg: any, commit: string, version: string) {
;[pkg.data.dependencies || {}, pkg.data.devDependencies || {}, pkg.data.peerDependencies || {}].forEach((deps) => {
Object.entries(deps).forEach(([key, value]: any) => {
if (value.includes(commit)) return

if (packages[key]) pkg.data.dependencies[key] = packages[key] + version
})
})
}

async function main() {
const path = process.argv[2]

const pkg = await loadPackage(path)

const commit = execSync('git rev-parse --short HEAD').toString('utf-8').trim()

const version = `${pkg.data.version}-${commit}`

if (!pkg.data.name.includes('-edge')) pkg.data.name = `${pkg.data.name}-edge`

if (!pkg.data.version.includes(commit)) pkg.data.version = version

replaceWithEdge(pkg, commit, version)

pkg.save()
}

main().catch((err) => {
// eslint-disable-next-line no-console
console.error(err)
process.exit(1)
})
33 changes: 33 additions & 0 deletions .github/scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

# Root
rm -rf node_modules
rm -rf pnpm-lock.yaml

# Base
rm -rf packages/base/.nuxt
rm -rf packages/base/.output
rm -rf packages/base/.turbo
rm -rf packages/base/node_modules

# Docs Theme
rm -rf packages/docs-theme/.nuxt
rm -rf packages/docs-theme/.output
rm -rf packages/docs-theme/.turbo
rm -rf packages/docs-theme/node_modules

# GitHub
rm -rf packages/github/playground/.nuxt
rm -rf packages/github/playground/.output
rm -rf packages/github/test/fixtures/basic/.nuxt
rm -rf packages/github/test/fixtures/basic/.output
rm -rf packages/github/dist
rm -rf packages/github/.turbo
rm -rf packages/github/node_modules


# Docs
rm -rf docs/.nuxt
rm -rf docs/.output
rm -rf docs/.turbo
rm -rf docs/node_modules
16 changes: 16 additions & 0 deletions .github/scripts/release-edge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Bump versions to edge
npx jiti ../../.github/scripts/bump-edge $PWD

# Update token
if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
npm whoami
fi

# # Release package
echo "Publishing $PWD"
npm publish -q --access public
14 changes: 14 additions & 0 deletions .github/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Update token
if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
npm whoami
fi

# Release package
echo "Publishing $PWD"
# npm publish -q --access public
echo "Published!"
51 changes: 51 additions & 0 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ci-dev

on:
push:
branches:
- dev
pull_request:
types: [opened, synchronize]
branches:
- dev

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node: [16]

steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 2

- uses: pnpm/[email protected]
with:
version: 6.32.2

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

# - name: Test
# run: pnpm test

- name: Release Edge version
if: github.event_name == 'push'
run: pnpm run release:edge
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
Loading