diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml new file mode 100644 index 0000000..6fb1f5b --- /dev/null +++ b/.github/workflows/Documenter.yml @@ -0,0 +1,36 @@ +name: Documenter +on: + push: + branches: + - main + tags: '*' + pull_request: + +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} +jobs: + build: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/cache@v1 + with: + cache-registries: "false" + - name: Install documentation dependencies + run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate()' + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key + GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988 + JULIA_DEBUG: "Documenter" + DATADEPS_ALWAYS_ACCEPT: true + run: | + julia --code-coverage=user --project=docs/ --color=yes docs/genfiles.jl + julia --code-coverage=user --project=docs/ --color=yes docs/make.jl diff --git a/README.md b/README.md index c12685e..4d54ee6 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,9 @@ df = DataFrame(date = ["today is the 4th July, 2000", "ayer fue 13th Oct 2001", "3 of Mar, 2002 was a fun day", "23rd Apr 2003", - "7/23/2043", - "03/2/1932", - "08-23-1932", + "23/7/2043", + "03/02/1932", + "23-08-1932", "4th of July, 2005", "08092019" , missing]) diff --git a/docs/examples/UserGuide/supported_function.jl b/docs/examples/UserGuide/supported_functions.jl similarity index 98% rename from docs/examples/UserGuide/supported_function.jl rename to docs/examples/UserGuide/supported_functions.jl index 0290244..80514f5 100644 --- a/docs/examples/UserGuide/supported_function.jl +++ b/docs/examples/UserGuide/supported_functions.jl @@ -8,9 +8,9 @@ df = DataFrame(date = ["today is the 4th July, 2000", "ayer fue 13th Oct 2001", "3 of Mar, 2002 was a fun day", "23rd Apr 2003", - "7/23/2043", + "23/7/2043", "03/2/1932", - "08-23-1932", + "23-08-1932", "4th of July, 2005", "08092019" , missing])