generated from ydataai/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e15b056
commit 975c8cd
Showing
15 changed files
with
171 additions
and
15 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,73 @@ | ||
name: Publish Documentation | ||
|
||
|
||
|
||
on: | ||
push: | ||
paths: | ||
- docs/** | ||
- mkdocs.yml | ||
branches: | ||
- main | ||
release: | ||
types: | ||
- released | ||
|
||
|
||
|
||
jobs: | ||
prepare: | ||
name: Get Current version | ||
runs-on: ubuntu-22.04 | ||
|
||
outputs: | ||
version: ${{ steps.version.outputs.value }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
|
||
- name: Find Latest Tag | ||
id: latest_tag | ||
uses: oprypin/[email protected] | ||
with: | ||
repository: ${{ github.repository }} | ||
regex: '^\d+\.\d+\.\d+' | ||
releases-only: true | ||
|
||
- name: Extract major and minor version | ||
id: version | ||
run: | | ||
echo "value=`echo ${{ steps.latest_tag.outputs.tag }} | sed -r 's|([0-9]+.[0-9]+).*|\1|g'`" >> $GITHUB_OUTPUT | ||
publish-docs: | ||
name: Publish Docs | ||
runs-on: ubuntu-22.04 | ||
|
||
needs: | ||
- prepare | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Cache pip dependencies | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }} | ||
|
||
- name: Install doc dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
make install-doc | ||
- name: Publish | ||
run: make publish-docs version=${{ needs.prepare.outputs.version }} |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
name: Merge Main | ||
|
||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
|
||
|
||
jobs: | ||
prepare: | ||
name: Calculate Version and Build Number | ||
|
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 |
---|---|---|
|
@@ -13,18 +13,6 @@ on: | |
|
||
|
||
jobs: | ||
cancel_previous: | ||
name: 'Cancel Previous Runs' | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 3 | ||
|
||
steps: | ||
- uses: ydataai/[email protected] | ||
with: | ||
ignore_sha: true | ||
access_token: ${{ secrets.ACCESS_TOKEN }} | ||
|
||
|
||
validate: | ||
name: Validate | ||
runs-on: ubuntu-22.04 | ||
|
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
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,16 @@ | ||
# YData SDK Documentation | ||
|
||
Installing the documentation dependencies (one-time step): | ||
```bash | ||
pip install -e ".[doc]" | ||
``` | ||
|
||
Build the doc for deployment: | ||
```bash | ||
mkdocs build | ||
``` | ||
|
||
To build and serve locally: | ||
```bash | ||
mkdocs serve | ||
``` |
Empty file.
Empty file.
Empty file.
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,17 @@ | ||
# Welcome to MkDocs | ||
|
||
For full documentation visit [mkdocs.org](https://www.mkdocs.org). | ||
|
||
## Commands | ||
|
||
* `mkdocs new [dir-name]` - Create a new project. | ||
* `mkdocs serve` - Start the live-reloading docs server. | ||
* `mkdocs build` - Build the documentation site. | ||
* `mkdocs -h` - Print help message and exit. | ||
|
||
## Project layout | ||
|
||
mkdocs.yml # The configuration file. | ||
docs/ | ||
index.md # The documentation homepage. | ||
... # Other markdown pages, images and other files. |
Empty file.
Empty file.
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 @@ | ||
# Help & Troubleshooting |
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 @@ | ||
site_name: YData SDK | ||
|
||
repo_name: ydataai/ydata-sdk | ||
repo_url: https://github.com/ydataai/ydata-sdk | ||
|
||
theme: | ||
name: material | ||
language: en | ||
palette: | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
primary: blue grey | ||
accent: deep orange | ||
toggle: | ||
icon: material/toggle-switch-off-outline | ||
name: Switch to dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
primary: blue grey | ||
accent: deep orange | ||
scheme: slate | ||
toggle: | ||
icon: material/toggle-switch | ||
name: Switch to light mode | ||
|
||
nav: | ||
- Getting started: | ||
- Overview: 'index.md' | ||
- Installation: 'getting-started/installation.md' | ||
- Quickstart: 'getting-started/quickstart.md' | ||
- Examples: 'getting-started/examples.md' | ||
- Support: | ||
- Help & Troubleshooting: 'support/help-troubleshooting.md' | ||
- Contribution Guidelines: 'support/help-troubleshooting.md' | ||
- Reference: | ||
- Changelog: 'reference/changelog.md' | ||
- API: | ||
- Overview: 'reference/api/overview.md' | ||
- GAN: 'reference/api/synthesizers/gan.md' | ||
- Regular: | ||
- CGAN: 'reference/api/synthesizers/cgan.md' | ||
|
||
|
||
extra: | ||
version: | ||
provider: mike | ||
generator: false |
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