Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Publish Package to npmjs
on:
release:
types: [created]

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -10,6 +15,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Publish package to npm
run: |
cd packages/gatsby-theme-iterative
Expand All @@ -19,5 +25,3 @@ jobs:
else
yarn npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
664 changes: 329 additions & 335 deletions .yarn/releases/yarn-4.9.1.cjs → .yarn/releases/yarn-4.12.0.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ npmScopes:
npmPublishRegistry: 'https://registry.npmjs.org'
npmRegistryServer: 'https://registry.npmjs.org'

yarnPath: .yarn/releases/yarn-4.9.1.cjs
yarnPath: .yarn/releases/yarn-4.12.0.cjs
5 changes: 3 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import eslint from '@eslint/js'
import json from '@eslint/json'

import tseslint from 'typescript-eslint'
import { defineConfig } from 'eslint/config'

import react from 'eslint-plugin-react'
import jsxA11y from 'eslint-plugin-jsx-a11y'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'

export default tseslint.config(
export default defineConfig(
{
ignores: [
'**/node_modules/**',
Expand Down Expand Up @@ -57,7 +58,7 @@ export default tseslint.config(
react.configs.flat.recommended,
react.configs.flat['jsx-runtime'],
jsxA11y.flatConfigs.recommended,
eslintPluginReactHooks.configs['recommended-latest'],
eslintPluginReactHooks.configs.flat.recommended,
{
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
plugins: {
Expand Down
35 changes: 19 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,27 @@
"packages/*"
],
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.24.0",
"@eslint/json": "^0.11.0",
"eslint": "^9.24.0",
"eslint-config-prettier": "10.1.2",
"@eslint/eslintrc": "^3.3.3",
"@eslint/js": "^9.39.2",
"@eslint/json": "^0.14.0",
"eslint": "^9.39.2",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"gatsby-plugin-postcss": "^6.14.0",
"globals": "^16.0.0",
"eslint-plugin-react-hooks": "^7.0.1",
"gatsby-plugin-postcss": "^6.16.0",
"globals": "^17.2.0",
"husky": "9.1.7",
"lint-staged": "15.5.1",
"prettier": "3.5.3",
"stylelint": "16.18.0",
"stylelint-config-standard": "38.0.0",
"typescript": "5.8.3",
"typescript-eslint": "^8.30.1"
"lint-staged": "16.2.7",
"prettier": "3.8.1",
"stylelint": "17.0.0",
"stylelint-config-standard": "40.0.0",
"typescript": "5.9.3",
"typescript-eslint": "^8.54.0"
},
"packageManager": "yarn@4.9.1"
"packageManager": "yarn@4.12.0",
"engines": {
"node": "22.x"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ more information.
```

⚠️ DVC requires the following OAuth Scopes:

- `https://www.googleapis.com/auth/drive`
- `https://www.googleapis.com/auth/drive.appdata`

Expand Down Expand Up @@ -760,7 +759,6 @@ $ export OSS_ENDPOINT='endpoint'
```

The order in which DVC picks the user name:

1. `user` parameter set with this command (found in `.dvc/config`);
2. User defined in the URL (e.g. `ssh://user@example.com/path`);
3. User defined in the SSH config file (e.g. `~/.ssh/config`) for this host
Expand All @@ -774,7 +772,6 @@ $ export OSS_ENDPOINT='endpoint'
```

The order in which DVC decide the port number:

1. `port` parameter set with this command (found in `.dvc/config`);
2. Port defined in the URL (e.g. `ssh://example.com:1234/path`);
3. Port defined in the SSH config file (e.g. `~/.ssh/config`) for this host
Expand Down Expand Up @@ -964,7 +961,6 @@ by HDFS. Read more about by expanding the WebHDFS section in

- `auth` - authentication method to use when accessing the remote. The accepted
values are:

- `basic` -
[basic authentication scheme](https://tools.ietf.org/html/rfc7617). `user`
and `password` (or `ask_password`) parameters should also be configured.
Expand Down Expand Up @@ -1006,7 +1002,6 @@ by HDFS. Read more about by expanding the WebHDFS section in
```

The order in which DVC picks the user name:

1. `user` parameter set with this command (found in `.dvc/config`);
2. User defined in the URL (e.g. `http://user@example.com/path`);

Expand Down Expand Up @@ -1067,7 +1062,6 @@ by HDFS. Read more about by expanding the WebHDFS section in
```

The order in which DVC searches for user name is:

1. `user` parameter set with this command (found in `.dvc/config`);
2. User defined in the URL (e.g. `webdavs://user@example.com/endpoint/path`)

Expand Down
1 change: 0 additions & 1 deletion packages/example/content/docs/command-reference/repro.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ up-to-date and only execute the final stage.
- `targets` (optional command argument) - what to reproduce (all pipeline(s) in
`./dvc.yaml` by default). Different things can be provided as targets
depending on the flags used (more details in each option). Examples:

- `dvc repro linear/dvc.yaml`: A `dvc.yaml` file
- `dvc repro -R pipelines/`: Directory to explore recursively for pipelines
- `dvc repro train-model`: Specific stage(s) from `./dvc.yaml`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ important characteristics (dependencies, outputs, or metrics).

- `targets` (optional command argument) - location of the stages to list
(`./dvc.yaml` by default). Examples:

- `dvc stage list linear/dvc.yaml`: A `dvc.yaml` file
- `dvc stage list -R pipelines/`: Directory to explore recursively for stages
- `dvc stage list train-model`: Specific stage(s) from `./dvc.yaml`
Expand Down
2 changes: 0 additions & 2 deletions packages/example/content/docs/command-reference/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ detailed bellow.
or outputs tracked by the stage or `.dvc` file. Depending on the use case,
commands like `dvc commit`, `dvc repro`, or `dvc run` can be used to update
the file. Possible states are:

- _new_: An <abbr>output</abbr> is found in the <abbr>workspace</abbr>, but
there is no corresponding file hash saved in the `dvc.lock` or `.dvc` file
yet.
Expand Down Expand Up @@ -109,7 +108,6 @@ that.
(specified in the `core.remote` config option).

The `dvc remote` used is determined in order, based on

1. the `remote` fields in the `dvc.yaml` or `.dvc` files.
2. the value passed to the `--remote` option via CLI.
3. the value of the `core.remote` config option (see `dvc remote default`).
Expand Down
2 changes: 0 additions & 2 deletions packages/example/content/docs/command-reference/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ The detail of DVC version depends upon the way of installing DVC.
[installed](/doc/install).

DVC can be installed from one of the binary releases:

- Debian package (`.deb`) - file used to install packages in several Linux
distributions, like Ubuntu
- Red Hat package (`.rpm`) - file used to install packages in some Linux based
Expand All @@ -78,7 +77,6 @@ The detail of DVC version depends upon the way of installing DVC.
> source code into the binary package app.

DVC can also be downloaded and installed using a package manager:

- [DVC's GitHub repository](https://github.com/iterative/dvc) - where core
source code is hosted
- [The Python Package Index (PyPI)](https://pypi.org/project/dvc/) - source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ _Luigi_, etc.
[_Make_](https://www.gnu.org/software/make/) and others.

- File tracking:

- DVC tracks files based on their hash values (MD5) instead of using
timestamps. This helps avoid running into heavy processes like model
retraining when you checkout a previous version of the project (Make would
Expand All @@ -115,7 +114,6 @@ _Luigi_, etc.
- DVC utilizes a
[directed acyclic graph](https://en.wikipedia.org/wiki/Directed_acyclic_graph)
(DAG):

- The DAG or dependency graph is defined implicitly by the connections between
[stages](/doc/command-reference/run), based on their
<abbr>dependencies</abbr> and <abbr>outputs</abbr>.
Expand Down
8 changes: 4 additions & 4 deletions packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
},
"dependencies": {
"@dvcorg/gatsby-theme-iterative": "workspace:*",
"gatsby": "^5.14.3",
"gatsby-transformer-remark": "^6.14.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"gatsby": "^5.16.0",
"gatsby-transformer-remark": "^6.16.0",
"react": "^19.2.4",
"react-dom": "^19.2.4"
}
}
2 changes: 0 additions & 2 deletions packages/gatsby-theme-iterative/config/prismjs/dvc-hook.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

const Prism = require('prismjs')
const argsRegex = new RegExp(/-{1,2}[a-zA-Z-]*/, 'ig')

Expand Down
2 changes: 0 additions & 2 deletions packages/gatsby-theme-iterative/config/prismjs/dvc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

// we require prism and load its bash module so we have
// Prism.languages.bash to embed into our DVC language.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env node */
const Prism = require('prismjs')

const getTableTextBgColorRegex = color => new RegExp(String.raw`${color}:\S+`)
Expand Down
2 changes: 0 additions & 2 deletions packages/gatsby-theme-iterative/config/prismjs/usage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

const dvc = require('./dvc-commands')
const cml = require('./cml-commands')
const mlem = require('./mlem-commands')
Expand Down
2 changes: 0 additions & 2 deletions packages/gatsby-theme-iterative/gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

const onRenderBody = ({ setHeadComponents }, { plausibleSrc }) => {
if (plausibleSrc) {
return setHeadComponents([
Expand Down
5 changes: 2 additions & 3 deletions packages/gatsby-theme-iterative/onCreateNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ let tooltipHTMLProcessor
const getTooltipHTMLProcessor = async () => {
if (!tooltipHTMLProcessor) {
const { remark } = await import('remark')
const { default: recommended } = await import(
'remark-preset-lint-recommended'
)
const { default: recommended } =
await import('remark-preset-lint-recommended')
const { default: remarkHtml } = await import('remark-html')

tooltipHTMLProcessor = remark().use(recommended).use(remarkHtml)
Expand Down
58 changes: 30 additions & 28 deletions packages/gatsby-theme-iterative/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dvcorg/gatsby-theme-iterative",
"version": "0.3.25",
"version": "0.3.26-beta.3",
"description": "",
"main": "index.js",
"types": "src/typings.d.ts",
Expand All @@ -10,55 +10,55 @@
"get-commands": "node config/prismjs/get-commands.js"
},
"dependencies": {
"@babel/plugin-transform-react-jsx": "^7.25.9",
"@reach/portal": "^0.18.0",
"@babel/plugin-transform-react-jsx": "^7.28.6",
"@radix-ui/react-portal": "^1.1.10",
"@reach/skip-nav": "^0.18.0",
"@sentry/gatsby": "^9.12.0",
"@sentry/gatsby": "^10.37.0",
"@svgr/webpack": "^8.1.0",
"@types/gatsbyjs__reach-router": "^2.0.5",
"@types/isomorphic-fetch": "^0.0.39",
"@types/promise-polyfill": "^6.0.6",
"@types/react-collapse": "^5.0.4",
"@types/react-helmet": "^6.1.11",
"@types/unist": "^3.0.3",
"autoprefixer": "^10.4.21",
"autoprefixer": "^10.4.23",
"classnames": "^2.5.1",
"ease-component": "^1.0.0",
"gatsby-plugin-image": "^3.14.0",
"gatsby-plugin-manifest": "^5.14.0",
"gatsby-plugin-postcss": "^6.14.0",
"gatsby-plugin-react-helmet": "^6.14.0",
"gatsby-plugin-sharp": "5.14.0",
"gatsby-plugin-sitemap": "^6.14.0",
"gatsby-plugin-image": "^3.16.0",
"gatsby-plugin-manifest": "^5.16.0",
"gatsby-plugin-postcss": "^6.16.0",
"gatsby-plugin-react-helmet": "^6.16.0",
"gatsby-plugin-sharp": "5.16.0",
"gatsby-plugin-sitemap": "^6.16.0",
"gatsby-plugin-svgr": "^3.0.0-beta.0",
"gatsby-remark-autolink-headers": "^6.14.0",
"gatsby-remark-autolink-headers": "^6.16.0",
"gatsby-remark-copy-relative-linked-files": "^2.0.0",
"gatsby-remark-embed-gist": "^1.2.1",
"gatsby-remark-embedder": "^7.0.0",
"gatsby-remark-external-links": "^0.0.4",
"gatsby-remark-images": "^7.14.0",
"gatsby-remark-prismjs": "^7.13.1",
"gatsby-remark-responsive-iframe": "^6.14.0",
"gatsby-remark-smartypants": "^6.14.0",
"gatsby-source-filesystem": "^5.14.0",
"gatsby-transformer-remark": "^6.14.0",
"gatsby-transformer-sharp": "^5.14.0",
"gatsby-remark-images": "^7.16.0",
"gatsby-remark-prismjs": "^7.16.0",
"gatsby-remark-responsive-iframe": "^6.16.0",
"gatsby-remark-smartypants": "^6.16.0",
"gatsby-source-filesystem": "^5.16.0",
"gatsby-transformer-remark": "^6.16.0",
"gatsby-transformer-sharp": "^5.16.0",
"github-markdown-css": "^5.8.1",
"github-slugger": "^2.0.0",
"hast-util-select": "^6.0.4",
"iso-url": "^1.2.1",
"isomorphic-fetch": "^3.0.0",
"lodash": "^4.17.21",
"nanoid": "^5.1.5",
"lodash": "^4.17.23",
"nanoid": "^5.1.6",
"perfect-scrollbar": "^1.5.6",
"postcss": "^8.5.3",
"postcss": "^8.5.6",
"postcss-nested": "^7.0.2",
"prismjs": "^1.29.0",
"promise-polyfill": "^8.3.0",
"react-collapse": "^5.1.1",
"react-collapsible": "^2.10.0",
"react-helmet": "^6.1.0",
"react-intersection-observer": "^9.16.0",
"react-intersection-observer": "^10.0.2",
"react-use": "^17.6.0",
"rehype-parse": "^8.0.5",
"rehype-react": "^7.2.0",
Expand All @@ -69,20 +69,22 @@
"remark-preset-lint-recommended": "^6.1.3",
"reset-css": "^5.0.2",
"scroll": "^3.0.1",
"tailwindcss": "^3.4.17",
"tailwindcss": "^3.4.19",
"title-case": "^3.0.3",
"unified": "^11.0.5",
"unist-util-remove-position": "^5.0.0",
"unist-util-visit": "^5.0.0"
"unist-util-visit": "^5.1.0"
},
"devDependencies": {
"@types/hast": "3.0.4",
"stylelint": "16.18.0",
"typescript": "5.8.3"
"@types/lodash": "4.17.23",
"@types/react": "19.2.10",
"stylelint": "17.0.0",
"typescript": "5.9.3"
},
"peerDependencies": {
"gatsby": "^5.0.0",
"react": "^18.0.0"
"react": "^19.0.0"
},
"engines": {
"node": ">=22.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

const { createLinkNode } = require('./helpers')
const { getItemByPath } = require('../../src/utils/shared/sidebar')
const consts = require('../../consts')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

const { createLinkNode, useMatcher } = require('./helpers')
const { getItemByPath } = require('../../src/utils/shared/sidebar')
const consts = require('../../consts')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

const flow = require('lodash/flow')
const constant = require('lodash/constant')

Expand Down
Loading