-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into queryOptionButton-fix
# Conflicts: # package-lock.json # src/contexts/StateContextProvider.tsx
- Loading branch information
Showing
60 changed files
with
5,708 additions
and
1,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "stylelint", | ||
"pattern": [ | ||
{ | ||
"regexp": "^([^\\s].*)$", | ||
"file": 1 | ||
}, | ||
{ | ||
"regexp": "^\\s*(\\d+):(\\d+)\\s+(\\S+)\\s+(.+?)\\s+(\\S+)$", | ||
"line": 1, | ||
"column": 2, | ||
"message": 4, | ||
"code": 5, | ||
"loop": true | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "test" | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "reopened", "synchronize"] | ||
push: | ||
schedule: | ||
# Run daily at 00:15 UTC (the 15 is to avoid periods of high load) | ||
- cron: "15 0 * * *" | ||
workflow_dispatch: | ||
|
||
permissions: {} | ||
|
||
concurrency: | ||
group: "${{github.workflow}}-${{github.ref}}" | ||
|
||
# Cancel in-progress jobs for efficiency | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "actions/checkout@v4" | ||
with: | ||
submodules: "recursive" | ||
- uses: "actions/setup-node@v4" | ||
with: | ||
node-version: "22" | ||
cache: "npm" | ||
cache-dependency-path: "./package-lock.json" | ||
- run: "npm clean-install" | ||
- run: "npm run test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
/node_modules | ||
|
||
# Build | ||
/.task | ||
/build | ||
/dist | ||
|
||
# For bundle size analysis | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "tools/yscope-dev-utils"] | ||
path = tools/yscope-dev-utils | ||
url = https://github.com/y-scope/yscope-dev-utils.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Docs | ||
|
||
This directory contains the files necessary to generate a Sphinx-based documentation website for | ||
this project: | ||
|
||
* `conf` - Configuration files | ||
* `src` - The actual docs | ||
|
||
## Requirements | ||
|
||
* [Git LFS][git-lfs] | ||
* We use Git LFS to store the images in the docs; this is to avoid significant increases in | ||
the size of repo as we add and update images. | ||
* [Node.js] >= 16 to be able to [view the output](#viewing-the-output) | ||
* Python 3.10 or later | ||
* [Task] >= 3.38.0 | ||
|
||
## Build commands | ||
|
||
* Build the site incrementally: | ||
|
||
```shell | ||
task docs:site | ||
``` | ||
|
||
* The output of the build will be in `../build/docs/html`. | ||
|
||
* Clean up the build: | ||
|
||
```shell | ||
task docs:clean | ||
``` | ||
|
||
## Viewing the output | ||
|
||
```shell | ||
task docs:serve | ||
``` | ||
|
||
The command above will install [http-server] and serve the built docs site; `http-server` will print | ||
the address it binds to (usually http://localhost:8080). | ||
|
||
[git-lfs]: https://git-lfs.com | ||
[http-server]: https://www.npmjs.com/package/http-server | ||
[Node.js]: https://nodejs.org/en/download/current | ||
[Task]: https://taskfile.dev/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# -- Project information ------------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = "YScope Log Viewer" | ||
|
||
# NOTE: We don't include a period after "Inc" since the theme adds one already. | ||
copyright = "2022-2024 YScope Inc" | ||
|
||
# -- General configuration ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = [ | ||
"myst_parser", | ||
"sphinx_copybutton", | ||
"sphinx_design", | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.viewcode", | ||
"sphinxcontrib.mermaid", | ||
] | ||
|
||
# -- MyST extensions ----------------------------------------------------------- | ||
# https://myst-parser.readthedocs.io/en/stable/syntax/optional.html | ||
myst_enable_extensions = [ | ||
"attrs_block", | ||
"colon_fence", | ||
] | ||
|
||
myst_heading_anchors = 4 | ||
|
||
# -- Sphinx autodoc options ---------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration | ||
|
||
autoclass_content = "class" | ||
autodoc_class_signature = "separated" | ||
autodoc_typehints = "description" | ||
|
||
# -- HTML output options ------------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_favicon = "https://docs.yscope.com/_static/favicon.ico" | ||
html_title = project | ||
html_show_copyright = True | ||
|
||
html_static_path = ["../src/_static"] | ||
|
||
html_theme = "pydata_sphinx_theme" | ||
|
||
# -- Theme options ------------------------------------------------------------- | ||
# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html | ||
|
||
html_theme_options = { | ||
"footer_start": ["copyright"], | ||
"footer_center": [], | ||
"footer_end": ["theme-version"], | ||
"navbar_start": ["navbar-logo"], | ||
"navbar_end": ["navbar-icon-links", "theme-switcher"], | ||
"primary_sidebar_end": [], | ||
"secondary_sidebar_items": ["page-toc", "edit-this-page"], | ||
"show_prev_next": False, | ||
"use_edit_page_button": True, | ||
} | ||
|
||
# -- Theme source buttons ------------------------------------------------------ | ||
# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/source-buttons.html | ||
|
||
html_context = { | ||
"github_user": "y-scope", | ||
"github_repo": "yscope-log-viewer", | ||
"github_version": "main", | ||
"doc_path": "docs/src", | ||
} | ||
|
||
# -- Theme custom CSS and JS --------------------------------------------------- | ||
# https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/static_assets.html | ||
|
||
|
||
def setup(app): | ||
app.add_css_file("custom.css") |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.