Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade website and documentation to Docusaurus (#187)
* Initial merge of boilerplate docusaurus site with existing Vue based site. Kept only minimal overlapping files to avoid cruft removal later. Will port existing components, scripts and pages into docusaurus setup in subsequent commits. * Script to generate API mdx files from turf jsdoc comments. Working for most 6.5.0 single function packages. Need to update for packages like helpers and meta that contain multiple exported functions. Includes component to display maps derived from jsdoc @example tags. * API generation working for multiple function modules such as turf-helpers. * Trying a greyscale map type. Changed parameters to be table based. Source returns information from a different section of the documentation.js output that separates out embedded links. * Fix a bug in **strong** handling. Take a less naive approach in _emphasis_ as well. * Rolling back to documentation.js 13.2.4 as 13.2.5 doesn't seem to handle inline {@link } tags very well. * Generating API sidebar automatically from documentation.yml. Prettifying generated typescript and MDX to improve visibility of any manual tweaks we need to make post versioning. * Checking in first version of 6.5.0 docs MDX. * Wrapping example maps in a <BrowserOnly> tag. Ran into problems building a production site for deployment. Our old friend "rbush is not a constructor" was not playing well with server side generation. Seems to work ok in the browser though. * Moving CNAME file to recommended location according to docusaurus deployment docs. * Manually tweaking a couple of functions that we just can't clearly generate docs for. Mainly malformed JSDoc in the 6.5.0 source. * Stop prettier from adding a trailing semicolon after map MDX. Semicolon was showing up under map in API webpages. * Couldn't get prettier to work consistently wrt trailing semicolon after <Map /> line, so adding a prettier ignore line above it. Removing a couple of packages that weren't documented or exported in @turf/turf 6.5.0. They're not in the CDN version that the website uses, so will reintroduce them once v7 is on the CDN instead. * Couldn't get prettier to work consistently wrt trailing semicolon after <Map /> line, so adding a prettier ignore line above it. Removing a couple of packages that weren't documented or exported in @turf/turf 6.5.0. They're not in the CDN version that the website uses, so will reintroduce them once v7 is on the CDN instead. * Migrating turf top level README.md and CONTRIBUTING.md over into docs/ area. * Fixing broken or outdated links. Some minor heading changes to make RHS nav bar more sensible. * Adding a quick blog entry for the website upgrade. * Adding home page map functionality, albeit in need of some styling. * Getting the demo map on the home page working to show the effect of different Turf functions. Fixing some footer links. * Updating github actions to try to get PR building. * Didn't specify the node version correctly. Removing the strategy matrix - probably don't need it for generating documentation?
- Loading branch information