-
Updated dependencies [
3d9aeca8
]:- @hashicorp/react-alert@6.1.1
- #713
4d9adc47
Thanks @thiskevinwang! - fixedversion-select
version detection logic
- #683
ffca266c
Thanks @thiskevinwang! - passscope
to mdxContentHook
- #681
d67e047c
Thanks @thiskevinwang! - ExposemdxContentHook
option on loader interfaces
- #668
8521e0de
Thanks @thiskevinwang! - Support version faking when using FS loader
- #676
22d16677
Thanks @BRKalow! - Fix condition for applying the margin top to align search with the version select
- #674
18bbd6e8
Thanks @thiskevinwang! - Refactored version-alert implementation. No external API change
-
#663
f1af288d
Thanks @alexcarpenter! - Bump react-content dependency -
Updated dependencies [
101f7665
]:- @hashicorp/react-content@8.2.3
- #660
67f962ba
Thanks @thiskevinwang! - PassprojectName
to internalVersionAlert
- #650
c9719e1b
Thanks @BRKalow! - Adds newprojectName
prop, which is used to augment the version select label.
- #639
c8c945f4
Thanks @thiskevinwang! - This fixes incorrect logic for parsing and stripping a TFE version from Next.js path params.
- #638
7adf9066
Thanks @thiskevinwang! - move@hashicorp/remark-plugins
intopeerDependencies
- #631
ce6cfd8b
Thanks @thiskevinwang! - This updatesdocs-page
remote content loader to handle TFE versions in path params.
- Updated dependencies [
c3a29de1
]:- @hashicorp/react-version-select@0.4.0
-
#607
c4308f52
Thanks @zchsh! - BREAKING CHANGE: no longer provides default remark and rehype plugins.Consumers should pass all
remarkPlugins
andrehypePlugins
through loader options. To match previous behaviour, consumers should import our@hashicorp/remark-plugins
as well as code highlighting plugins.// Shared remark plugins import { includeMarkdown, paragraphCustomAlerts, typography, anchorLinks, } from '@hashicorp/remark-plugins' // Code highlighting import rehypePrism from '@mapbox/rehype-prism' import rehypeSurfaceCodeNewlines from '@hashicorp/platform-code-highlighting/rehype-surface-code-newlines' // To enable math features, add remarkMath & rehypeKatex // import remarkMath from 'remark-math' // import rehypeKatex from 'rehype-katex' const remarkPlugins = [ [ includeMarkdown, { resolveMdx: true, resolveFrom: path.join(process.cwd(), localPartialsDir), }, ], paragraphCustomAlerts, typography, anchorLinks, /* ... option to add more plugins here ... */ ] const rehypePlugins = [ [rehypePrism, { ignoreMissing: true }], rehypeSurfaceCodeNewlines, /* ... option to add more plugins here ... */ ]
- #603
ad19f3d5
Thanks @zchsh! - Fixes issue where URLs with trailing index would resolve, rather than 404 as expected.
- #583
27a251e2
Thanks @thiskevinwang! - This version adds a navDataPrefix option to the RemoteContentLoader to make nav-data lookup more flexible.
- #576
36f924ae
Thanks @thiskevinwang! - - convertdocs-sidenav
to typescript- update
docs-page
internal code and narrow prop type
- update
- Updated dependencies [
36f924ae
]:- @hashicorp/react-docs-sidenav@9.0.0
- #569
21e78bfe
Thanks @zchsh! - Bumps @hashicorp/react-content dependency to fix a table alignment issues. See #562 for details.
- #524
657f44b3
Thanks @BRKalow! - Support passing a function for remarkPlugins, which accepts the params for the current page being rendered.
- #516
ceb89b24
Thanks @dstaley! - Ignore non-jump-to-section tagged H2 elements within the content of a DocsPage
- #508
f0bfe27
Thanks @BRKalow! - Adds CodeTabsProvider to DocsPage, which is necessary for syncing language selection across multiple CodeTabs instances.
-
#498
e60fa8f
Thanks @BRKalow! - Bumps underlying dependencies. -
Updated dependencies [
e60fa8f
]:- @hashicorp/react-content@8.2.1
- @hashicorp/react-search@6.4.1
-
#484
5d9f538
Thanks @thiskevinwang! - DocsPage- Rename
DocsPageWrapper
toDocsPageInner
- Hide
VersionAlert
if version in path is "latest"
GlossaryPage
- Update internal import
- Rename
- Updated dependencies [
a6a6ba4
]:- @hashicorp/react-content@8.1.1
- #468
22a02a4
Thanks @thiskevinwang! - Updateversion-select
to handle multipart basePath's, such assentinel/intro
- Updated dependencies [
22a02a4
]:- @hashicorp/react-version-select@0.3.0
- #465
b19d478
Thanks @thiskevinwang! - moveshowVersionSelect
default value
- Updated dependencies [
03d83a6
,e545db4
]:- @hashicorp/react-search@6.3.1
- @hashicorp/react-content@8.1.0
- #453
eabad4b
Thanks @zchsh! - Exposes new, optional localPartialsDir option for the filesystem loader.
- Updated dependencies [
68ab860
]:- @hashicorp/react-search@6.3.0
- #441
f795232
Thanks @thiskevinwang! - Fix displayValue
- #437
4feba18
Thanks @thiskevinwang! - Refactor internal data loader code. Passscope
option to MDX renderer
- #424
02428a8
Thanks @zchsh! - Add support for Algolia config, through an optional algoliaConfig prop, which is passed to react-search. This prop can be omitted, or provided with incomplete properties, and react-search will fall back to environment variables.
- Updated dependencies [
02428a8
]:- @hashicorp/react-search@6.2.0
- #420
523f802
Thanks @thiskevinwang! - Throw when getStaticProps errors
- #390
57e5b21
Thanks @BRKalow! - Refactor docs page server-side code to use a new loaders pattern. Updates the existing generateStatic* functions to use the FileLoader under the hood, while marking them as deprecated.
- #416
a6ecd8d
Thanks @thiskevinwang! - surface warning about missing env vars during development
- #402
2f9b9c6
Thanks @zchsh! - Patches issue where DocsPageWrapper was not exported. Without this export, GlossaryPage can cause Vercel builds of react-components to fail.
- #398
9d70e6b
Thanks @thiskevinwang! - This fixes docs-page to sort versions my descending semver
-
#393
950f79c
Thanks @kendallstrautman! - Upgrades the @hashicorp/markdown-utils dep to pull in a remark plugin a11y change -
Updated dependencies [
8012b33
]:- @hashicorp/react-alert@6.0.2
-
#388
a906a8d
Thanks @BRKalow! - Adds styles for search hits and adds units to a variable so that it works in calc() -
Updated dependencies [
a906a8d
]:- @hashicorp/react-search@6.1.1
-
#382
cc46ed6
Thanks @thiskevinwang! - This updates logic to checkprocess.env.ENABLE_VERSIONED_DOCS === 'true'
since environment variables are always strings.This should prevent some unintended behavior if ENABLE_VERSIONED_DOCS is parsed as a string
"false"
, but unintentionally evaluating totruthy
-
Updated dependencies [
ef6333f
]:- @hashicorp/react-docs-sidenav@8.4.0
-
#373
4a5204b
Thanks @thiskevinwang! - construct githubFileUrl to be used w/ Edit this page- This links to the
main
branch file while on the latest version - This is hidden for non-latest versions
- This links to the
- Updated dependencies [
fe1fe69
]:- @hashicorp/react-search@6.0.2
- #375
0124e48
Thanks @thiskevinwang! - This removes a log statement that was breaking minor updates
-
#354
929b9b4
Thanks @thiskevinwang! -react-docs-page
now makes api-calls to the mktg-content-workflows' content api#360 refactored server code to TypeScript
- Updated dependencies [
9b190b0
]:- @hashicorp/react-docs-sidenav@8.3.0
- #362
77e5712
Thanks @BRKalow! - Adjust prop interface to make showVersionSelect, additionalComponents, and showEditPage optional
- #353
8a83473
Thanks @zchsh! - Patches an issue in @hashicorp/platform-docs-mdx related to Tabs styling.
- #351
a3358e6
Thanks @BRKalow! - - Updates @hashicorp/platform-docs-mdx package to one that relies on the latest versions of our components
- #348
4ac0276
Thanks @BRKalow! - Adds back @hashicorp/versioned-docs dependency to docs-page as it is still used
- #346
14f7b1f
Thanks @BRKalow! - Update docs-page to depend on @hashicorp/react-version-select instead of @hashicorp/version-select
- #342
348434e
Thanks @thiskevinwang! - feat(version-select): addedremoveVersionFromPath
util feat(react-docs-page): use new VersionSelect; add test coverage; expose extra prop
- Updated dependencies [
348434e
]:- @hashicorp/version-select@0.2.0
- #337
40afe45
Thanks @thiskevinwang! - This converts DocsPage to TypeScript. There are no new changes to the component API!
-
#298
4c3e3d1
Thanks @zchsh! - Converts Search to CSS modules, and makes tweaks in consuming components to account for related changes.- 💥✨ BREAKING CHANGE: Refactored to CSS modules.
- Consumers will need to remove any
@hashicorp/react-search/style.css
imports. - For
.hit-content
, consumers will need to import@hashicorp/react-search/hit-content-styles.module.css
, and uses.root
on theirrenderHitContent
container.
- Consumers will need to remove any
- 💥✨ BREAKING CHANGE: Refactored to CSS modules.
-
Updated dependencies [
4c3e3d1
]:- @hashicorp/react-docs-sidenav@8.2.5
- @hashicorp/react-search@6.0.0