Skip to content

Commit

Permalink
use plugin to create sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
Holtz Yan authored and Holtz Yan committed Sep 25, 2023
1 parent 46b8f1d commit 197c68c
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
siteMetadata: {
title: 'The Python Graph Gallery',
description: 'A gallery of charts made with Python',
siteUrl: `https://www.python-graph-gallery.com`,
},
plugins: [
{
Expand Down Expand Up @@ -71,5 +72,6 @@ module.exports = {
},
},
},
`gatsby-plugin-sitemap`,
],
};
56 changes: 56 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"gatsby-plugin-image": "^3.10.0",
"gatsby-plugin-manifest": "^5.12.0",
"gatsby-plugin-sharp": "^5.10.0",
"gatsby-plugin-sitemap": "^6.12.0",
"gatsby-source-filesystem": "^5.10.0",
"gatsby-transformer-sharp": "^5.10.0",
"katex": "^0.10.0-alpha",
Expand Down
2 changes: 1 addition & 1 deletion src/notebooks/web-histogram-with-annotations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"\n",
"Here's the following things we do in order to customize our [histogram](https://python-graph-gallery.com/histogram/):\n",
"\n",
"- We initialize a **cartesian coordinate layout** for the plot and sets the **background color** of both the plot and figure to `\"whitesmoke\"`\n",
"- We initialize a **cartesian coordinate layout** for the plot and set the **background color** of both the plot and figure to `\"whitesmoke\"`\n",
"- Defines a **list of colors** to be used for each bar in the [histogram](https://python-graph-gallery.com/histogram/)\n",
"- Creates the horizontal [histogram](https://python-graph-gallery.com/histogram/) using the `ax.barh()` method, where `df['range']` represents the horizontal positions of the bars, and `df['people']` represents the heights of the bars. The specified colors are used for the bars\n",
"- Adds vertical **grid lines** to the chart with specified linestyle, opacity, and axis\n",
Expand Down

0 comments on commit 197c68c

Please sign in to comment.