Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1754d44
copy over indexing post draft
scottyhq Aug 11, 2025
4e4307a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 11, 2025
7bb7cfe
temoporarily switch paths for pr preview
scottyhq Aug 12, 2025
12b1737
fix asset paths, update banner
scottyhq Aug 12, 2025
a69eda0
banner image
scottyhq Aug 12, 2025
7906054
more edits
scottyhq Aug 13, 2025
051ea8d
labeled schematic figure
scottyhq Aug 13, 2025
de477f3
Merge branch 'main' into flexible-indexes2
scottyhq Aug 13, 2025
caf7663
justus review + other edits
scottyhq Aug 13, 2025
f561ba4
Xarray Indexes -> Flexible Indexes
scottyhq Aug 25, 2025
3d699bf
dcherian's -> ours
scottyhq Aug 25, 2025
32a730b
index -> Index
scottyhq Aug 25, 2025
10656d2
Clearer note language
scottyhq Aug 25, 2025
cb0a8e6
clarify RangeIndex slice selection
scottyhq Aug 25, 2025
3582d85
code formatting
scottyhq Aug 25, 2025
39a8b5f
geotransform interpretation
scottyhq Aug 25, 2025
6793f22
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 25, 2025
40e1871
xvec geometry index clarification
scottyhq Aug 25, 2025
b8ce048
Nod to geopandas
scottyhq Aug 25, 2025
f6b0289
link to index gallery in tldr
scottyhq Aug 25, 2025
54ccde0
remaining dcherian review comments, minor edits
scottyhq Aug 25, 2025
3527970
match title and banner
scottyhq Aug 25, 2025
499b811
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
56a6e7e
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
29726d9
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
4ff07d8
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
82b8138
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
dcee56c
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
fce5d49
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
4b6d366
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
d10ff38
Update src/posts/flexible-indexing/index.md
scottyhq Sep 2, 2025
bdef441
benoit review + final edits
scottyhq Sep 2, 2025
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
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,46 @@ You can start editing the page by modifying `pages/index.js`. The page auto-upda
<img src="https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg">
</p>
</a>

## Authoring blog post tips

1. To create a new blog post a good place to start is copying a subfolder under `src/posts/`, so, for example https://xarray.dev/blog/flox is written here https://github.com/xarray-contrib/xarray.dev/blob/e04905f5ea039eb2eb848c0b4945beee323900e4/src/posts/flox/index.md

### Static assets

Once you have `src/posts/newpost/index.md` start writing! If you want to include figures or other static assets, they go into a matching `public/posts/newpost` folder. But! reference an images without the `public` part of the path like this:

```html
<p align="center">
<img src="/posts/newpost/figure.png" />
</p>
```

### Xarray HTML reprs

To include an html repr, you must save it first:

```python
with open('da-repr.html', 'w') as f:
f.write(da._repr_html_())
```

Then put it into the post's static assets folder `public/posts/newpost/da-repr.html`. And finally in `src/posts/newpost/index.md` you can include it with this syntax:

```
<RawHTML filePath='/posts/newpost/da-repr.html' />
```

### Toggling visibilty of sections (markdown comments)

While authoring, you might want to toggle specific sections on and off during rendering. You can do that with this syntax:

```
{/* This is a comment that won't be rendered! */}
```

### Landing page banner

If you'd like to add a link to the latest blog post on the landing page banner, edit this section here:

https://github.com/xarray-contrib/xarray.dev/blob/e04905f5ea039eb2eb848c0b4945beee323900e4/src/components/layout.js#L18
Loading