Skip to content

Commit

Permalink
Replace papi-components with two new libraries (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolierabideau authored Jan 16, 2024
2 parents ff2fcc9 + 82c5d29 commit c2dd689
Show file tree
Hide file tree
Showing 193 changed files with 8,325 additions and 52,006 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ dist
storybook-static

# directories that have separate eslint project
lib/papi-components
lib/platform-bible-react
lib/platform-bible-utils
lib/papi-dts
extensions

Expand Down
3 changes: 2 additions & 1 deletion .github/assets/github-pages-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
</head>
<body>
<h1>Platform.Bible API</h1>
<a href="papi-components/index.html">Go to papi-components</a>
<a href="platform-bible-react/index.html">Go to platform-bible-react</a>
<a href="platform-bible-utils/index.html">Go to platform-bible-utils</a>
<a href="papi-dts/index.html">Go to papi-dts</a>
</body>
</html>
9 changes: 6 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ jobs:
- name: Build documentation
run: | # need to specify --out so pages links at /{their name} instead of at /docs
cd lib/papi-components
npm run build:docs -- --out papi-components
cd lib/platform-bible-react
npm run build:docs -- --out platform-bible-react
cd ../platform-bible-utils
npm run build:docs -- --out platform-bible-utils
cd ../papi-dts
npm run build:docs -- --out papi-dts
cd ../../
mkdir docs-for-pages
mv lib/papi-components/papi-components docs-for-pages
mv lib/platform-bible-react/platform-bible-react docs-for-pages
mv lib/platform-bible-utils/platform-bible-utils docs-for-pages
mv lib/papi-dts/papi-dts docs-for-pages
- name: Add nojekyll # needed so that HTML pages that start with _ do not cause 404
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ dist
storybook-static

# directories that have separate eslint project
lib/papi-components
lib/platform-bible-react
lib/platform-bible-utils
lib/papi-dts
extensions

Expand Down
3 changes: 2 additions & 1 deletion .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ dist
storybook-static

# directories that have separate eslint project
lib/papi-components
lib/platform-bible-react
lib/platform-bible-utils
lib/papi-dts
extensions

Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,13 @@ Paranext Core extensions are found in the `extensions` folder. Please follow the

- Explore the declarations of types available on the PAPI.

**[Platform.Bible Components Documentation](https://paranext.github.io/paranext-core/papi-components)**
**[Platform.Bible React Components and Hooks Documentation](https://paranext.github.io/paranext-core/platform-bible-react)**

- Check out the React components available on the PAPI.
- Check out the React components and hooks available to use.

**[Platform.Bible Utilities Documentation](https://paranext.github.io/paranext-core/platform-bible-utils)**

- Check out the utility functions, types, and classes available to use.

## JavaScript Tool Manager

Expand Down
136 changes: 101 additions & 35 deletions extensions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion extensions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"css-loader": "^6.8.1",
"escape-string-regexp": "^5.0.0",
"glob": "^10.3.3",
"papi-components": "file:../lib/papi-components",
"platform-bible-react": "file:../lib/platform-bible-react",
"platform-bible-utils": "file:../lib/platform-bible-utils",
"papi-dts": "file:../lib/papi-dts",
"prettier": "^2.8.8",
"prettier-plugin-jsdoc": "^0.4.2",
Expand Down
Loading

0 comments on commit c2dd689

Please sign in to comment.