Skip to content

Commit 3e122e2

Browse files
authored
Fix - Docs development entry (#3632)
* Fixed docs main entry when in development - was breaking private * Changed local host matching * Changed dev main entry to have only prefix * Fixed no developmentVersion * Bump uilib-docs package version
1 parent 374918f commit 3e122e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docuilib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uilib-docs",
3-
"version": "3.12.0",
3+
"version": "3.13.0",
44
"main": "./src/index.ts",
55
"scripts": {
66
"docusaurus": "docusaurus",

docuilib/src/components/MainSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default () => {
4040
</div>
4141

4242
<div className={styles.buttons}>
43-
<Link to={`/docs/${location.hostname === 'localhost' ? `${docsDevelopmentVersion}/` : ''}${docsMainEntry}`}>
43+
<Link to={`/docs/${(location.hostname === 'localhost' && docsDevelopmentVersion) ? `${docsDevelopmentVersion}/` : ''}${docsMainEntry}`}>
4444
<button className={'button dark'}>View Docs</button>
4545
</Link>
4646

0 commit comments

Comments
 (0)