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

chore: new website documentation #2163

Draft
wants to merge 47 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
7fffdad
chore: base of new website documentation
theo-mesnil Aug 2, 2023
7401a7c
Welcome UI Tokens & Styles (Markdown) (#2167)
supernovaio[bot] Aug 2, 2023
b409f24
docs: change route for design
theo-mesnil Aug 2, 2023
f7b6f51
docs: remove wrong design folder
theo-mesnil Aug 2, 2023
d599cb7
docs: add table of contents
theo-mesnil Aug 9, 2023
85de68f
docs: add sidebar navigation
theo-mesnil Aug 9, 2023
f0a324b
docs: add static params generation
theo-mesnil Aug 9, 2023
4f16e7a
feat: change folder for docs
theo-mesnil Aug 10, 2023
5cca6a1
docs: format data to have the same between design and dev
theo-mesnil Aug 17, 2023
70580ce
docs: upgrade for nextjs 13 packages
theo-mesnil Aug 17, 2023
c1ec31d
docs: add theme
theo-mesnil Aug 17, 2023
4ebbd19
docs: add code mirror
theo-mesnil Aug 17, 2023
5717bcb
ci: bring back yarn build:docs
theo-mesnil Aug 22, 2023
ccdbdb5
docs: remove old design pages
theo-mesnil Sep 18, 2023
1f0b850
Updated styles and tokens (#2269)
supernovaio[bot] Sep 18, 2023
692ad7a
feat: add new pages overview and props on components
theo-mesnil Sep 27, 2023
6da23cb
feat: remove old pages from design
theo-mesnil Sep 27, 2023
547fe84
fix: change path for components properties
theo-mesnil Sep 27, 2023
3a7cbf2
Updated styles and tokens (#2308)
supernovaio[bot] Sep 28, 2023
aa3d792
feat: rework imports
theo-mesnil Sep 29, 2023
5d28f9c
feat: add foundations page on static build
theo-mesnil Sep 29, 2023
7627ca0
chore: upgrade nextjs
theo-mesnil Sep 30, 2023
d805491
feat: add header
theo-mesnil Sep 30, 2023
9d10159
docs: rework documentation template
theo-mesnil Oct 4, 2023
e53d98c
docs: add alerts
theo-mesnil Oct 4, 2023
99eed25
Updated styles and tokens (#2320)
supernovaio[bot] Oct 4, 2023
8b696d7
fix: dont
theo-mesnil Oct 4, 2023
4cbac2d
feat: rework style of titles etc
theo-mesnil Oct 4, 2023
ec92503
feat: add Tokens
theo-mesnil Oct 4, 2023
e9d76bb
Updated styles and tokens (#2322)
supernovaio[bot] Oct 4, 2023
1f60fa0
feat: add sticky on navigations
theo-mesnil Oct 4, 2023
d49c46b
feat: add pages from supernova components
theo-mesnil Oct 4, 2023
e63b91c
feat: rework mdx components and add toc on props page
theo-mesnil Oct 10, 2023
1ecb9ba
feat: add style on navigations
theo-mesnil Oct 11, 2023
a2e1044
fix: wrong case imports
theo-mesnil Oct 12, 2023
ba2f7e8
fix: navigation subpages
theo-mesnil Oct 12, 2023
17bc048
fix: props page
theo-mesnil Oct 12, 2023
5cb995f
chore: fix depcheck
theo-mesnil Oct 18, 2023
e003c9d
feat: add playground component
theo-mesnil Oct 19, 2023
661f087
feat: change lerna config import to avoid alert in console
theo-mesnil Oct 19, 2023
c912918
chore: remove old documentation and upgrade linters
theo-mesnil Oct 19, 2023
04033db
fix: typescript on website
theo-mesnil Oct 19, 2023
ff0192f
feat: upgrade to nextjs 14
theo-mesnil Jan 2, 2024
42c9ec4
feat: rebase and upgrade to last nextjs version
theo-mesnil Mar 14, 2024
b0ea9c9
feat: rework props page
theo-mesnil Mar 14, 2024
91a7284
feat: rework page design
theo-mesnil Mar 14, 2024
ab471cf
feat: update properties
theo-mesnil Mar 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
33 changes: 16 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,39 +113,39 @@ jobs:
- packages/IconFont/fonts

# current version build (common to previews & prod)
docs_build:
website_build:
<<: *defaults
steps:
- attach_workspace:
at: ~/welcome-ui
- restore_cache:
key: << pipeline.parameters.cache_version >>-welcome-ui-{{ .Environment.CIRCLE_SHA1 }}
- run: yarn docs:build
- run: yarn website:build
- persist_to_workspace:
root: ~/welcome-ui
paths:
- docs/out
- website/out

# current version deploy for previews
docs_deploy_preview:
website_deploy_preview:
<<: *defaults
steps:
- attach_workspace:
at: ~/welcome-ui
- restore_cache:
key: << pipeline.parameters.cache_version >>-welcome-ui-{{ .Environment.CIRCLE_SHA1 }}
- run: node_modules/.bin/netlify deploy --dir=docs/out --alias $CIRCLE_BRANCH
- run: node_modules/.bin/netlify deploy --dir=website/out --alias $CIRCLE_BRANCH

# current version deploy for production
docs_deploy_prod:
website_deploy_prod:
<<: *defaults
steps:
- attach_workspace:
at: ~/welcome-ui
- restore_cache:
key: << pipeline.parameters.cache_version >>-welcome-ui-{{ .Environment.CIRCLE_SHA1 }}
- aws-s3/sync:
from: docs/out
from: website/out
to: s3://welcome-ui/docs_production
arguments: |
--metadata GitCommit=$CIRCLE_SHA1
Expand All @@ -155,7 +155,7 @@ jobs:
- run: node_modules/.bin/netlify deploy --dir=docs_production --prod

# previous versions build & deploy for production
previous_docs_versions_build_deploy_prod:
previous_website_versions_build_deploy_prod:
<<: *defaults
steps:
- attach_workspace:
Expand All @@ -164,9 +164,9 @@ jobs:
key: << pipeline.parameters.cache_version >>-welcome-ui-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: build w/ prefix
command: VERSION=$CIRCLE_BRANCH yarn docs:build
command: VERSION=$CIRCLE_BRANCH yarn website:build
- aws-s3/sync:
from: docs/out
from: website/out
to: s3://welcome-ui/docs_production/$CIRCLE_BRANCH
arguments: |
--metadata GitCommit=$CIRCLE_SHA1 --delete
Expand Down Expand Up @@ -204,7 +204,6 @@ jobs:
command: yarn lerna publish from-git --yes --no-verify-access --dist-tag next

workflows:
version: 2
btd:
jobs:
- checkout:
Expand Down Expand Up @@ -252,13 +251,13 @@ workflows:
requires:
- yarn_install
- build
- docs_build:
- website_build:
filters:
tags:
only: /.*/
requires:
- build
- docs_deploy_prod:
- website_deploy_prod:
context:
- aws
- netlify
Expand All @@ -271,18 +270,18 @@ workflows:
requires:
- test
- lint
- docs_build
- website_build
- build_and_release_icon_font
- docs_deploy_preview:
- website_deploy_preview:
context:
- netlify
- welcome-ui
requires:
- test
- lint
- docs_build
- website_build
- build_and_release_icon_font
- previous_docs_versions_build_deploy_prod:
- previous_website_versions_build_deploy_prod:
context:
- aws
- netlify
Expand Down
7 changes: 3 additions & 4 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"ignores": [
"@testing-library/*"
]
}
"ignores": ["@testing-library/*"],
"ignorePatterns": ["docs/*"]
}
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = {
extends: './node_modules/wttj-config/lib/eslint/eslintrc-typescript',
ignorePatterns: ['docs'],
}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.env
dist/
docs/out
docs/.next
website/out
website/.next
.cache/
node_modules/
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
!/dist/*.js
*.test.js
/docs
/website
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Welcome UI

<img src="docs/public/illustration.png" width="300" />

Welcome to the _Welcome UI library_ created by [Welcome to the jungle](https://www.welcometothejungle.com), a customizable design system with react • typescript • styled-components • styled-system and ariakit.

Here you'll find all the core components you need to create a delightful webapp.
Expand Down
17 changes: 0 additions & 17 deletions docs/babel.config.js

This file was deleted.

51 changes: 0 additions & 51 deletions docs/components/App.js

This file was deleted.

57 changes: 0 additions & 57 deletions docs/components/Colors.js

This file was deleted.

37 changes: 0 additions & 37 deletions docs/components/ComponentsList/Link.js

This file was deleted.

29 changes: 0 additions & 29 deletions docs/components/ComponentsList/VersionSelector/index.js

This file was deleted.