Skip to content

Commit

Permalink
add website
Browse files Browse the repository at this point in the history
  • Loading branch information
Friessn committed Oct 16, 2024
1 parent 3d9e38c commit fb9b2f6
Show file tree
Hide file tree
Showing 36 changed files with 9,194 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Deploy docs to GHPages"

on:
workflow_dispatch:
push:
branches: ['main', 'website']

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.3.340

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: R Dependencies
uses: r-lib/actions/setup-r-dependencies@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Render and publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules/

.Rproj.user

/.quarto/
29 changes: 29 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
project:
type: website
output-dir: docs
render:
- index.qmd

website:
title: "Maplibre GL JS Bindings for R and Python"
description: "Build interactive maps using R and Python"
open-graph: true
repo-url: https://github.com/eodaGmbH/maplibre-bindings
repo-actions: [edit, issue]
page-navigation: true
page-footer:
right:
- icon: github
href: https://github.com/eodaGmbH/maplibre-bindings
aria-label: Maplibre bindings site GitHub

navbar:
background: primary
pinned: true
left:
- href: index.qmd
text: Home

format:
html:
theme: [sandstone]
672 changes: 672 additions & 0 deletions docs/index.html

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"objectID": "index.html",
"href": "index.html",
"title": "Maplibre GL JS Bindings for R and Python",
"section": "",
"text": "MapLibre GL JS bindings for R and Python\n\nRPython\n\n\nMapLibre for R provides R bindings for MapLibre GL JS.\nIt integrates seamlessly into Shiny, Quarto and Jupyter.\n\nlibrary(maplibre)\n\nmaplibre(map_options = mapOptions(center=c(-123.1256, 49.24658), zoom = 9))\n\n\n\n\n\n\n\nMapLibre for Python provides Python bindings for MapLibre GL JS.\nIt integrates seamlessly into Shiny for Python, Quarto and Jupyter.\n\nfrom maplibre import Map, MapOptions\n\nMap(MapOptions(center=(-123.1256, 49.24658), zoom=9))\n\n\n\n\nMy Awesome Map"
}
]
Loading

0 comments on commit fb9b2f6

Please sign in to comment.