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

Issue 7624: New Documentation #7626

Merged
merged 342 commits into from Jul 8, 2021
Merged
Show file tree
Hide file tree
Changes from 106 commits
Commits
Show all changes
342 commits
Select commit Hold shift + click to select a range
2be4215
Add 'docs/' from commit '5427b5d35d8913e8356a9b3e0c07829cc84b79a4'
Siemienik Mar 11, 2021
ee5bb79
Added sitemap.xml (https://github.com/handsontable/docs-md/pull/105)
Siemienik Mar 11, 2021
b9b00ef
Merge branch 'feature/docs-next/jsdoc-update' into feature/issue-7624
Siemienik Mar 12, 2021
2befad8
Readme update (https://github.com/handsontable/docs-md/pull/106)
Siemienik Mar 12, 2021
230e552
API Fixaxtions
Siemienik Mar 16, 2021
ecc13b9
API Fixations
Siemienik Mar 16, 2021
f5a25be
API Fixations
Siemienik Mar 16, 2021
6bbd4ce
API Fixations
Siemienik Mar 16, 2021
0f6a76d
Merge commit '6bbd4cef1f669793333ee1b8ead78a3d12751fdc' into feature/…
Siemienik Mar 17, 2021
400ccae
FIX Deployment
Siemienik Mar 17, 2021
2c87620
FIX Deployment, change image name, limit to path,
Siemienik Mar 17, 2021
badde04
run Documentation deployment
Siemienik Mar 17, 2021
99dd3b1
Use local Handsontable version for non production build mode.
Siemienik Mar 18, 2021
c30469b
Fixations from slack thread
Siemienik Mar 18, 2021
fbc43e3
Regenerate API Reference
Siemienik Mar 19, 2021
e40d0fa
Added changelog
Siemienik Mar 19, 2021
90a85d3
CR fixations
Siemienik Mar 19, 2021
1c698ed
regenerate lock file to resolve snyk issue
Siemienik Mar 19, 2021
2fdf812
Rever changes in the root package-lock.json (changed previously unint…
Siemienik Mar 19, 2021
2d05b11
Added searching in a scope of the current version and Fix autocomplet…
Siemienik Mar 22, 2021
d7180e7
Fix loading examples
Siemienik Mar 22, 2021
c362c7a
Fix, protect agains crearing HOT instances too early
Siemienik Mar 22, 2021
2430514
enable ci for RP, fix navbar
Siemienik Mar 22, 2021
416ed4b
Fixes hot dropdown, rename Guide to Guides
Siemienik Mar 22, 2021
b2bae82
Fix HOT on lower resolutions
Siemienik Mar 22, 2021
738f7a9
Active header link fixation, styled version alert
Siemienik Mar 22, 2021
2be76da
Plugin linter into documentation, added vue linter config.
Siemienik Mar 23, 2021
ade397b
disable eslint rule for 3 files
Siemienik Mar 23, 2021
e32c546
Clear up readme, revert changes for private links
Siemienik Mar 23, 2021
e0a4931
Fix styling for mobile
Siemienik Mar 23, 2021
5285994
Regenerate lock file
Siemienik Mar 23, 2021
cd879b1
Documentation fixations
Siemienik Mar 23, 2021
682d4f7
Fix image
Siemienik Mar 23, 2021
5ad4168
Fix font styles for Handsontable, added favicon
Siemienik Mar 24, 2021
eaa6208
Fix styles for Handsontable
Siemienik Mar 24, 2021
69fb508
Added link to source code
Siemienik Mar 24, 2021
bc90db8
WIP. Changed the appearance of the default theme. Adjusted nav and si…
krzysztofspilka Mar 25, 2021
8d48536
Changes to the appearance of the theme.
krzysztofspilka Mar 25, 2021
7342f1a
Merge branch 'feature/issue-7624' of github.com:handsontable/handsont…
krzysztofspilka Mar 25, 2021
b9aeb6a
Hot instance dimension fix
Siemienik Mar 29, 2021
8e5f23b
Format lastUpdated date
Siemienik Mar 29, 2021
1c1dda2
SEO fixations, added viewport meta and fix canonical urls for the lat…
Siemienik Mar 29, 2021
7450297
FIX seo, canonical url contains full domain
Siemienik Mar 29, 2021
2789bdf
Change behaviour of SidebarGroup collapse to keep open when another o…
Siemienik Mar 30, 2021
644bb2f
Search box customization, split search results into Guides and API Re…
Siemienik Mar 30, 2021
8977d20
Fix deployment: fix sitemap date formatting. Update readme
Siemienik Mar 31, 2021
bdf2ac7
Clearup sidebar code
Siemienik Mar 31, 2021
972cc65
Fix last updated
Siemienik Mar 31, 2021
fbb43ad
WIP. Changed the structure of guides.
krzysztofspilka Apr 7, 2021
f3a6af3
WIP: feature for loading preset with dependencies for advance example…
Siemienik Apr 7, 2021
2783ecb
FIX error with loading Handsontable after fixer was loaded
Siemienik Apr 8, 2021
19cd6a7
Added the additional box navigation to welcome.md. Fixed numerous bug…
krzysztofspilka Apr 8, 2021
8c66fbc
Changed the content on welcome.md. Removed redundant directories.
krzysztofspilka Apr 8, 2021
c31de74
FIX mutating prop error by introduce isOpen data field.
Siemienik Apr 8, 2021
1f67a57
FIX install missing dev dependency
Siemienik Apr 8, 2021
d7caabd
FIX invalid examples caught by new example build process.
Siemienik Apr 8, 2021
95a4798
Fix search box for the next documentation
Siemienik Apr 9, 2021
5a0f17c
Linter fix
Siemienik Apr 9, 2021
b422a3d
WIP: added babel dependencies to enable run next react examples
Siemienik Apr 9, 2021
da7b205
FIX operator {{ conflict resolved by replaceing into { {.
Siemienik Apr 12, 2021
ee213d9
REMOVE example version for improve build time
Siemienik Apr 12, 2021
d9666ff
Turn on example previews for all React pages:
Siemienik Apr 13, 2021
1bcb0ad
Improvements to the appearance.
krzysztofspilka Apr 13, 2021
5df86c5
ADD angular preset
Siemienik Apr 15, 2021
f7900c4
NEW write info about missing dependency
Siemienik Apr 15, 2021
e685f26
ADD vue preset
Siemienik Apr 15, 2021
47db964
ADD preview examples for vue
Siemienik Apr 15, 2021
110e287
WIP. Filled the pages in the getting started and frameworks sections.
krzysztofspilka Apr 15, 2021
de6053f
Fix dependency
Siemienik Apr 15, 2021
db549f9
Remove `:` from headers in API Reference
Siemienik Apr 16, 2021
e281f39
ADD markdown container `::: source-code-link http://....`
Siemienik Apr 16, 2021
1f41e0c
ADD API Reference Introduction page
Siemienik Apr 16, 2021
5dfe678
ADD into API Reference page `plugins`
Siemienik Apr 16, 2021
1cbb392
Copied and modified the content in all pages of the docs. Added a moc…
krzysztofspilka Apr 20, 2021
c709900
REFACTORING examples container split modules,
Siemienik Apr 20, 2021
3b90e3a
ADD diagram
Siemienik Apr 20, 2021
3178f34
REFACTORING handsontable-manager
Siemienik Apr 20, 2021
d3af4a7
eslint fix for jsdoc-convert
Siemienik Apr 20, 2021
f9ae51d
IMPROVE angular pages
Siemienik Apr 20, 2021
503855a
Use origin in handsontable-manager.js to get self hosted file
Siemienik Apr 20, 2021
8d65343
FIX eslint
Siemienik Apr 20, 2021
4a41b57
FIX eslint
Siemienik Apr 20, 2021
b68e000
Added tags for frontmatter.
krzysztofspilka Apr 20, 2021
6af071f
New Documentation: Associate options with plugins (#7826)
Osky772 Apr 21, 2021
7739e6e
Refreshed Documentation: Render plugins options in API Reference (#7832)
Siemienik Apr 21, 2021
c4a1187
Feature/issue 7624 structure and styling (#7836)
Siemienik Apr 21, 2021
1667609
ADD temporary version for the purpose to test the documentation
Siemienik Apr 21, 2021
f91d026
Merge branch 'develop' into feature/issue-7624
Siemienik Apr 21, 2021
bcdf237
Merge remote-tracking branch 'origin/issue-7624-ks-copy' into feature…
Siemienik Apr 22, 2021
448fbd0
replace '{{ $frontmatter.title }}' with real title (#7842)
Osky772 Apr 22, 2021
a446bee
REMOVE duplications
Siemienik Apr 22, 2021
97a0006
ADD examples sections,
Siemienik Apr 23, 2021
ca0d916
FIX build
Siemienik Apr 23, 2021
c7cca8a
Add broken link checker (#7839)
Osky772 Apr 26, 2021
012991b
remove node library import (#7845)
Osky772 Apr 26, 2021
7feee4f
Content moderation in the new documentation (#7844)
krzysztofspilka Apr 26, 2021
5f90d5f
change: increase navbar z-index (#7847)
Osky772 Apr 26, 2021
ec439fb
Add handsontable manager into build proccess (#7843)
Siemienik Apr 26, 2021
4b1beaa
FIX for circular running npm scripts & Improvements (#7850)
Siemienik Apr 27, 2021
ae32825
The content and examples for the new docs (#7849)
krzysztofspilka Apr 28, 2021
6f7df71
New documentation: refreshing and fixing API References (#7853)
Siemienik Apr 28, 2021
5d7e9bc
Changed the content and the styling of rich demos in the docs. (#7932)
krzysztofspilka May 5, 2021
11b5d59
New Documentation: fix examples in "Guides" (#7909)
Osky772 May 6, 2021
44d4655
New documentation: handling internal linking (#7978)
Siemienik May 10, 2021
b65e63b
New documentation: added tabs for code examples and preview (#7996)
Siemienik May 11, 2021
03494f5
Review callbacks and cell functions pages (#7979)
wojciechczerniak May 11, 2021
4e5459b
Newer syntax in code snippets (#7985)
Osky772 May 11, 2021
c0a00fb
Squashed commit of the following:
Siemienik May 12, 2021
e265c63
Added metaTitle for current and future SEO purposes. Did some tweaks …
krzysztofspilka May 12, 2021
a1564c5
Fix edit button styles
Siemienik May 12, 2021
864df65
Add cookiebot script (cookie consent) (#8015)
budnix May 13, 2021
74d3d72
Feature/issue 7624 content 5 - improved content and tabs design (#8012)
krzysztofspilka May 13, 2021
ef1e134
Fix H1 header scroll positioning (#8007)
budnix May 13, 2021
a0e1b4b
Fix languages example for React (#8021)
budnix May 13, 2021
839726e
Add support for fuzzy search in the API reference (#8005)
budnix May 13, 2021
9c57767
Proofreading of events and hooks.
krzysztofspilka May 13, 2021
0d5599e
Fix for the misaligned squared in the guides introduction.
krzysztofspilka May 13, 2021
8852bec
Open sidebar group after search
Siemienik May 13, 2021
55d5d9f
Improve the Selection demos and fix visual glitches (#8032)
budnix May 14, 2021
8fd0d5c
New docs: Improve CSS and fixed 4 broken links (#8034)
krzysztofspilka May 14, 2021
fddffa3
FIX ssr bug, which blocks preview scripts execution.
Siemienik May 17, 2021
2204b1d
Change order of tabs, add possibility to set default active tab. (#8037)
Siemienik May 18, 2021
7fc4302
New docs content (#8120)
Osky772 May 27, 2021
cce244a
more new content
Osky772 May 27, 2021
50245d4
rename selection dropdown item
Osky772 May 27, 2021
6e5abbe
fix typo for autoRowSize (#8133)
Osky772 Jun 2, 2021
d0c2475
angular new content (#8147)
Osky772 Jun 7, 2021
02bf968
New content for react and vue (#8156)
Osky772 Jun 8, 2021
09e181d
Add description to settings-object page (#8146)
budnix Jun 8, 2021
b3f2303
Improve the text of the Columns with docs (#8033)
budnix Jun 8, 2021
fe8e257
Merge branch 'develop' into feature/issue-7624
Siemienik Jun 9, 2021
8dc9389
New docs: change the URL of the logo (#8167)
Siemienik Jun 9, 2021
c3e526a
FIX: Video doesn't load at IME support page. (#8170)
Siemienik Jun 10, 2021
50783b6
New docs: FIXES last update date (#8172)
Siemienik Jun 10, 2021
20a9204
Fix render issues for hot (#8175)
budnix Jun 10, 2021
c54a97c
Fix broken demos for Column filter page (#8179)
budnix Jun 10, 2021
606f593
Added possibility to remove edit button. (#8174)
Siemienik Jun 10, 2021
c625b3b
Improve the Formatting Cells page (#8182)
budnix Jun 11, 2021
31c0d61
Hello World App for the new docs (JS, TS, React) (#8173)
wszymanski Jun 11, 2021
4d36cc9
Fix React-Redux example (#8183)
budnix Jun 11, 2021
90eead9
Fix the title on the Guides/Plugin page. (#8169)
Siemienik Jun 11, 2021
917355e
Switch Angular examples to Babel env (#8195)
budnix Jun 14, 2021
85a5231
New docs: Synchronise jsdoc content (#8199)
Siemienik Jun 14, 2021
c505c71
Add docs/ to the lint process and fix all complains (#8187)
budnix Jun 14, 2021
bd4640f
New docs: Fix production docker build (#8208)
Siemienik Jun 14, 2021
b364b9c
New docs: Fix "undefined" values in options (#8200)
Siemienik Jun 14, 2021
ce6864d
FIX Links to source use commit sha instead of develop branch (#8210)
Siemienik Jun 15, 2021
9ff89a2
New docs: check links report (#8212)
Siemienik Jun 15, 2021
17cbeda
Fix `timer` assignment (#8219)
budnix Jun 16, 2021
9953d24
Fix double-HoT initialization issue (#8217)
budnix Jun 16, 2021
f5c5a68
New Docs: Fixing grid-size example and controls sticked the hot insta…
Siemienik Jun 16, 2021
8fc4b68
New Docs: Improvement to the Hello World app (#8209)
wszymanski Jun 16, 2021
663cd5b
Fix i18n page, change not existed lang code to the de-DE. (#8228)
Siemienik Jun 16, 2021
9d5f1ed
Fix typos in demos and more (#8222)
budnix Jun 16, 2021
6153280
Fix tip containers (#8230)
Siemienik Jun 16, 2021
95b7205
Fixes plugins page (#8229)
Siemienik Jun 17, 2021
2e80c6b
button styles (#8218)
Osky772 Jun 17, 2021
bfd4cd7
Fix all links that points to the old docs (#8236)
budnix Jun 17, 2021
2806297
New docs: Fix formatting buttons for several demos and some other fix…
Siemienik Jun 17, 2021
f8a37c2
Links adjustment (#8192)
aninde Jun 18, 2021
ee39407
Rewrite link to use absolute path (#8240)
budnix Jun 18, 2021
3c9cec6
Generate api 9.0 (#8254)
budnix Jun 21, 2021
363a84c
Updating the feature/issue-7624 branch with June docs changes [skip c…
Jun 21, 2021
d4f4ead
Updating the feature/issue-7624 branch with old docs' changes [skip c…
Jun 21, 2021
8bca6a6
Convert the hot-version.js script to ES3 (#8244)
budnix Jun 21, 2021
bd33eaf
Add docs to ignore list in the test:ci script. (#8231)
jansiegel Jun 21, 2021
34bb2cc
Updating the feature/issue-7624 branch with old docs' changes [skip c…
Jun 21, 2021
d7727bc
Upsdatin th branch [skip ci]
Jun 21, 2021
0014b42
Updating the feature/issue-7624 branch with old docs' changes [skip c…
Jun 21, 2021
0d55960
Updating the feature/issue-7624 branch with old docs' changes [skip c…
Jun 21, 2021
3dab6d2
Updating the feature/issue-7624 branch with old docs' changes [skip c…
Jun 21, 2021
b575ff5
Updating the feature/issue-7624 branch with old docs' changes [skip c…
Jun 22, 2021
4e047ca
Handsontable API Reference - change title
Osky772 Jun 22, 2021
0997155
Fix formating, demos and link for HF-integration page
budnix Jun 22, 2021
9543c60
Add missing migration guide for "next" release
budnix Jun 22, 2021
5e07344
Add babel "proposal-private-methods" plugin (#8260)
budnix Jun 22, 2021
c08ccb8
Improve the docs:version script (#8255)
budnix Jun 22, 2021
476b1a5
Syncing docs content (#8177)
Jun 22, 2021
6e80bc6
Improve migration guide and cell-type page
budnix Jun 22, 2021
735a19f
Improve formulas and release notes pages
budnix Jun 22, 2021
cf9ef96
Merge branch 'feature/issue-7624' into feature/issue-8177
budnix Jun 22, 2021
5017fae
Fix content after accidental PR#8259 merge
budnix Jun 22, 2021
c7ccb8f
Fix typos and link after accidental PR#8259 merge
budnix Jun 22, 2021
842f22a
Add Handsoncode Team as an author
budnix Jun 23, 2021
5ef637a
Add support for current page preserving (#8258)
budnix Jun 23, 2021
15f93a4
Updated guide on how to create custom plugins (#8055)
swistach Jun 23, 2021
518789e
Re-writing the docs readme files (#8225)
Jun 23, 2021
dc1993c
Fix regex for mapped HoT version (#8256)
budnix Jun 23, 2021
59d661c
Update package-json lock file
budnix Jun 23, 2021
3f85fea
Add support for IE (#8269)
budnix Jun 24, 2021
b3123f2
Fix CI deployment by using standard file-system api. (#8272)
Siemienik Jun 24, 2021
12f2ff7
Dark theme for the new docs (#8243)
Osky772 Jun 24, 2021
a55b15c
Merge branch 'develop' into feature/issue-7624
Siemienik Jun 24, 2021
bdb9ab4
Add missing migrating guide ti sidebar
budnix Jun 24, 2021
c93ac1b
Fix "Report an issue" link
budnix Jun 24, 2021
43579a7
Fix link generation for old docs (#8298)
budnix Jun 25, 2021
82e31ed
Fix parent-child demo misalignment (#8305)
budnix Jun 25, 2021
9d6668e
FIX urls to assets (#8302)
Siemienik Jun 25, 2021
b80cdd5
Fix HF demo and move HF content to the Formulas page (#8299)
budnix Jun 25, 2021
d4c4683
Improve the HoT instances handling (#8286)
budnix Jun 25, 2021
4737ff4
FIX dark theme search icon url (#8309)
Siemienik Jun 25, 2021
d1b8c53
fix searchbox margin on focus (#8303)
Osky772 Jun 25, 2021
5b68a48
fix styles in HOT demos and custom block (#8310)
Osky772 Jun 25, 2021
30abc81
fix version swithcer link color
Osky772 Jun 25, 2021
418bcc1
remove HF from third-party-licenses page
Osky772 Jun 25, 2021
55c370a
Fix code preview tabs on mobile (#8312)
budnix Jun 25, 2021
ac555b1
fix code field styling on mobiles (#8314)
Osky772 Jun 28, 2021
095d903
Update docs/README-EDITING.md
Siemienik Jun 28, 2021
2562370
Attach the remove script logic to the beforeDestroy life-cycle event
budnix Jun 28, 2021
b81e2eb
Remove Handsontable Pro mentions
budnix Jun 28, 2021
697a9ca
Remove HoT version older than 4.0.0
budnix Jun 28, 2021
fbf5ea0
Merge branch 'develop' into feature/issue-7624
Siemienik Jun 28, 2021
8f4d452
Review changes [skip ci]
Jun 28, 2021
5727261
fix styles for date picker on dark theme (#8325)
Osky772 Jun 28, 2021
b2ec83e
HyperFormula license note (#8285)
Jun 28, 2021
ed058a6
Adding HF dependency list (#8320)
Jun 28, 2021
e5b3d83
fix table colors
Osky772 Jun 29, 2021
377d700
New docs: improve table responsiveness (#8341)
Siemienik Jun 30, 2021
a972d92
fix disabled tabs font color #8287 (#8326)
Osky772 Jun 30, 2021
edfd53f
FIX Increase amount of files which have generated SEO data (#8333)
Siemienik Jun 30, 2021
a1d17d0
Minor fixes for New documentation project after code review (#8344)
wszymanski Jul 1, 2021
1f2e479
Re-adding versioning interative mode to docs readme (#8348)
Jul 1, 2021
447f9e2
fix the blink effect when entering the dark theme (#8339)
Osky772 Jul 1, 2021
b5495ed
Listing example container options (#8350)
Jul 2, 2021
d2c6e8f
Docs readme: Expanding frontmatter info (#8349)
Jul 2, 2021
ca232f9
New docs: Introduced versioning for Hello world app (#8347)
wszymanski Jul 5, 2021
565899d
Add kbd hint to the search box (#8292)
Osky772 Jul 5, 2021
c5b76b7
Repair of broken links - 2nd iteration (#8327)
aninde Jul 5, 2021
3534024
Add support for links that targets directly to the latest version (#8…
budnix Jul 5, 2021
7a3c083
New Docs: fixation for generating links for the API Reference (#8357)
Siemienik Jul 5, 2021
afd1143
Fix anchor links to lower case (#8334)
aninde Jul 5, 2021
43b9ddd
Fix deployment
Siemienik Jul 5, 2021
f669c04
Docs: adding guidelines for editing a published version's API ref (#8…
Jul 5, 2021
ac1a54f
Docs: Adding info on Docker memory limit (#8338)
Jul 6, 2021
f0bfa6a
Split production and stage dockerfiles. (#8365)
Siemienik Jul 6, 2021
2741dda
Add assets versioning (#8361)
budnix Jul 6, 2021
d5fb7ed
Suggestions for search box will look properly on mobile devices #8353…
wszymanski Jul 6, 2021
17911d9
Set light color as background for Preview tab in dark theme #8355 (#8…
wszymanski Jul 6, 2021
0e0757c
Merge branch 'develop' into feature/issue-7624
Siemienik Jul 6, 2021
991fa3e
Separated containers on "Events and hooks" page to fix problem and ad…
wszymanski Jul 6, 2021
e785e5f
change warning box (#8343)
Osky772 Jul 7, 2021
72aac29
New Docs: FIX search shortcuts after route changed. (#8375)
Siemienik Jul 7, 2021
93d95ca
Add production workflow, manual run (#8382)
Siemienik Jul 7, 2021
edd6c10
Fix demos by adding `height: 'auto'` option to HoT (#8393)
budnix Jul 7, 2021
e88960b
Tag improvements for Hello world app (#8387)
aninde Jul 7, 2021
476e23f
Improve markdown table's styling (#8376)
budnix Jul 8, 2021
659ab33
Fix demo and icon styles for dark theme (#8395)
budnix Jul 8, 2021
588fc04
Remove the "feature/issue-7624" branch from GA Workflow
budnix Jul 8, 2021
e25ad7b
Regenerate v9.0 files (#8396)
Siemienik Jul 8, 2021
bbf77c7
Create documentation template (#8184)
aninde Jul 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
44 changes: 44 additions & 0 deletions .github/workflows/documentation.yml
@@ -0,0 +1,44 @@
name: Documentation Deployment

env:
GHA_DOCKER_TAG: docker.pkg.github.com/${{ github.repository }}/handsontable-documentation
GHA_DOCKER_TAG_SHA: docker.pkg.github.com/${{ github.repository }}/handsontable-documentation:${{ github.sha }}

on:
push:
branches: [ vuepress, develop, feature/issue-7624 ]
Siemienik marked this conversation as resolved.
Show resolved Hide resolved
paths:
- 'docs/**'
workflow_dispatch:

defaults:
run:
working-directory: ./docs/

jobs:
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2

- name: Docker login into GHCR
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login -u ${GITHUB_ACTOR} --password-stdin https://docker.pkg.github.com

- name: Docker build
run: |
npm run docs:docker:build

- name: Docker tags
run: |
docker tag docs-md $GHA_DOCKER_TAG
docker tag docs-md $GHA_DOCKER_TAG_SHA

- name: Docker push latest into GHCR
run: |
docker push ${GHA_DOCKER_TAG}

- name: Docker push SHA tagged into GHCR
run: |
docker push ${GHA_DOCKER_TAG_SHA}
17 changes: 17 additions & 0 deletions docs/.dockerignore
@@ -0,0 +1,17 @@
pids
logs
node_modules
npm-debug.log
coverage/
run
dist
.DS_Store
.nyc_output
.basement
config.local.js
basement_dist
.idea

# this file are required for build process (in opposite to .gitignore)
!/.vuepress/public/handsontable.js
!/.vuepress/public/handsontable.css
16 changes: 16 additions & 0 deletions docs/.gitignore
@@ -0,0 +1,16 @@
pids
logs
node_modules
npm-debug.log
coverage/
run
dist
.DS_Store
.nyc_output
.basement
config.local.js
basement_dist
.idea

/.vuepress/public/handsontable.js
/.vuepress/public/handsontable.css
93 changes: 93 additions & 0 deletions docs/.vuepress/config.js
@@ -0,0 +1,93 @@
const highlight = require('./highlight');
const helpers = require('./helpers');
const examples = require('./examples');

const environmentHead = process.env.BUILD_MODE === 'production' ?
[
// Google Tag Manager, an extra element within the `ssr.html` file.
['script', {}, `
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-55L5D3');
aninde marked this conversation as resolved.
Show resolved Hide resolved
`],
// Google Console //todo replace with valid token
// ['meta', { name: 'google-site-verification', content: 'MZpSOa8SNvFLRRGwUQpYVZ78kIHQoPVdVbafHhJ_d4Q' }]
Siemienik marked this conversation as resolved.
Show resolved Hide resolved
]
: [];

module.exports = {
patterns: ['**/*.md', '!README.md', '!README-EDITING.md', '!README-DEPLOYMENT.md'], // to enable vue pages add: '**/*.vue'.
description: 'Handsontable',
base: '/docs/',
head: [
['script', { src: '/scripts/handsontable-manager.js' }],
...environmentHead
],
markdown: {
toc: {
includeLevel: [2,3],
containerHeaderHtml: '<div class="toc-container-header">Table of contents</div>'
},
},
plugins: [
['sitemap', {
hostname: 'https://handsontable.com'
}],
['@vuepress/active-header-links', {
Siemienik marked this conversation as resolved.
Show resolved Hide resolved
sidebarLinkSelector: '.table-of-contents a',
headerAnchorSelector: '.header-anchor'
}],
['container', examples],
{
chainMarkdown (config) {
// inject custom markdown highlight with our snippet runner
config
.options
.highlight(highlight)
.end()
},
},
['@vuepress/search', {
searchPlaceholder: 'Search...',
test: helpers.getLatestVersion().replace('.','\\.') // todo make sensible for currentVersion
}]
],
extendPageData ($page) {
$page.versions = helpers.getVersions();
$page.latestVersion = helpers.getLatestVersion();
$page.currentVersion = helpers.parseVersion($page.path)

if($page.currentVersion === $page.latestVersion && $page.frontmatter.permalink) {
$page.frontmatter.permalink = $page.frontmatter.permalink.replace(/^\/[^/]*\//,'/');
}
},
themeConfig: {
logo: '/logo.png',
nextLinks: true,
prevLinks: true,
repo: 'handsontable/handsontable',
docsRepo: 'handsontable/handsontable',
docsDir: 'docs',
docsBranch: 'develop',
editLinks: true,
editLinkText: 'Help us improve this page',
lastUpdated: true,
smoothScroll: false,
nav: [
// Guide & API Reference has defined in: theme/components/NavLinks.vue
{ text: 'Demo', link: 'https://handsontable.com/examples' },
{ text: 'Support', items: [
{ text: 'Forum', link: 'https://forum.handsontable.com' },
{ text: 'Report an issue', link: 'https://github.com/handsontable/handsontable/issues/new' },
{ text: 'Contact support', link: 'https://handsontable.com/contact?category=technical_support' },
]
},
],
displayAllHeaders: true, // collapse other pages
activeHeaderLinks: true,
sidebarDepth: 0,
sidebar: helpers.getSidebars()
}
};
16 changes: 16 additions & 0 deletions docs/.vuepress/enhanceApp.js
@@ -0,0 +1,16 @@
// import RouterLink from './theme/components/RouterLink.vue';

const buildRegisterCleaner = (register) => () => {
if(register === undefined){
console.warn('The register doesn\'t exists');
return;
}

register.destroyAll();
}

export default ({ Vue, options, router, siteData, isServer }) => {
if(!isServer) {
router.afterEach(buildRegisterCleaner(handsontableInstancesRegister));
}
}
67 changes: 67 additions & 0 deletions docs/.vuepress/examples.js
@@ -0,0 +1,67 @@
/**
* Matches into: `example #ID .class`
* @type {RegExp}
*/
const exampleRegex = /^(example)\s*(#\S*|)\s*(\.\S*|)\s*([\S|\s]*)$/

const JSFIDDLE_ENDPOINT = 'https://jsfiddle.net/api/post/library/pure/';

const mapVersion = (version='latest') => (version.match(/^\d+\.\d+\.\d+$/) ? version : 'latest');

const getHotUrls = (version) => {
const mappedVersion = mapVersion(version);

return [
`https://cdn.jsdelivr.net/npm/handsontable@${mappedVersion}/dist/handsontable.full.min.js`,
`https://cdn.jsdelivr.net/npm/handsontable@${mappedVersion}/dist/handsontable.full.min.css`,
];
};

const getCss = (version) => {
const [scriptUrl, styleUrl] = getHotUrls(version);

return `</style><!-- Ugly Hack due to jsFiddle issue -->
<script src="${scriptUrl}"></script>
<link type="text/css" rel="stylesheet" href="${styleUrl}" />
`;
}

const getHtml = (id) => `<div id="${id}" ></div>`;
const jsfiddle = (id, code)=>{
return `
<form
id="jsfiddle-${id}"
action=${JSFIDDLE_ENDPOINT}
method="post"
target="_blank"
style="display:none;"
>
<input type="text" name="title" readOnly value="Handsontable example" />
<input type="text" name="wrap" readOnly value="d" />
<textarea name="js" readOnly>${code}</textarea>
<textarea name="html" readOnly>${getHtml(id)}</textarea>
<textarea name="css" readOnly>${getCss()}</textarea>
Siemienik marked this conversation as resolved.
Show resolved Hide resolved
</form>
<div class="js-fiddle-link"><button type="submit" form="jsfiddle-${id}"><i class="fa fa-jsfiddle"></i>Edit</button></div>
`;
}
module.exports = {
type: 'example',
render: function (tokens, index, opts, env) {
const token = tokens[index]
const tokenNext = tokens[index + 1]
const m = token.info.trim().match(exampleRegex);
const version = env.relativePath.split('/')[0];

if (token.nesting === 1 && m) {
let [full, tag, id, klass, content] = m;
id = id ? id.substring(1): '';
klass = klass ? klass.substring(1) : '';
// opening tag
return `<div data-jsfiddle="${id}"><div id="${id}" class="hot ${klass}"></div></div><script data-jsfiddle="${id}">useHandsontable('${version}', ()=>{${tokenNext.content}});</script><div class="codeLayout">${jsfiddle(id, tokenNext.content)}\n`;
} else {
// closing tag
return `</div>\n`;
}
}
}
37 changes: 37 additions & 0 deletions docs/.vuepress/helpers.js
@@ -0,0 +1,37 @@
const fs = require('fs');
const path = require('path');
const semver = require('semver');

// TODO: adjust to meet the monorepo structure requirements
const unsortedVersions = fs.readdirSync(path.join(__dirname, '..'))
.filter(f => semver.valid(semver.coerce(f)));

const versions = unsortedVersions.sort((a, b) => semver.rcompare(semver.coerce(a), semver.coerce((b))))

module.exports = {
getVersions () {
return ['next', ...versions];
},

getLatestVersion () {
return versions[0];
},

getSidebars () {
const sidebars = { };
const versions = this.getVersions();

versions.forEach(version => {
const s = require(path.join(__dirname, `../${version}/sidebars.js`));

sidebars[`/${version}/api/`] = s.api;
sidebars[`/${version}/`] = s.guide;
});

return sidebars;
},

parseVersion(url){
return url.split('/')[1] || this.getLatestVersion();
}
};
57 changes: 57 additions & 0 deletions docs/.vuepress/highlight.js
@@ -0,0 +1,57 @@
const prism = require('prismjs')
const loadLanguages = require('prismjs/components/index')
const { logger, chalk, escapeHtml } = require('@vuepress/shared-utils')

// required to make embedded highlighting work...
loadLanguages(['markup', 'css', 'javascript'])

function wrap (code, lang) {
if (lang === 'text') {
code = escapeHtml(code)
}
return `<pre v-pre class="language-${lang}"><code>${code}</code></pre>`
}

function getLangCodeFromExtension (extension) {
const extensionMap = {
vue: 'markup',
html: 'markup',
md: 'markdown',
rb: 'ruby',
ts: 'typescript',
py: 'python',
sh: 'bash',
yml: 'yaml',
styl: 'stylus',
kt: 'kotlin',
rs: 'rust',
hf: 'excel-formula',
formula: 'excel-formula',
hyperformula: 'excel-formula',
}

return extensionMap[extension] || extension
}

module.exports = (str, lang) => {
if (!lang) {
return wrap(str, 'text')
}
lang = lang.toLowerCase()
const rawLang = lang

lang = getLangCodeFromExtension(lang)

if (!prism.languages[lang]) {
try {
loadLanguages([lang])
} catch (e) {
logger.warn(chalk.yellow(`[vuepress] Syntax highlight for language "${lang}" is not supported.`))
}
}
if (prism.languages[lang]) {
const code = prism.highlight(str, prism.languages[lang], lang)
return wrap(code, rawLang)
}
return wrap(str, 'text')
}
Binary file added docs/.vuepress/public/img/LMB_is.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/img/LMB_was.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/.vuepress/public/img/drag_action.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/img/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/.vuepress/public/img/move_action.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/.vuepress/public/img/spare_after_8.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/.vuepress/public/img/spare_before_8.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.