Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making sure our docs are SEO optimized #253

Closed
idomic opened this issue Jan 27, 2023 · 4 comments
Closed

Making sure our docs are SEO optimized #253

idomic opened this issue Jan 27, 2023 · 4 comments

Comments

@idomic
Copy link
Contributor

idomic commented Jan 27, 2023

https://docs.readthedocs.io/en/stable/guides/technical-docs-seo-guide.html

@yafimvo
Copy link
Contributor

yafimvo commented Feb 15, 2023

I went over the doc and ran SEO tests on our docs and compared it with some other similar docs. I took the jupysql docs as an example.

According to this article, we are OK. Our robots.txt and sitemap.xml are in place and everything is linked. butm there is a place for improvement. Unfortunately, since we're using an auto doc builder like jupyter-book, I'm not sure it's that easy though (e.g: our links and headers are generated automatically).

Our score

image

Jupyter-book score

image

Sphinx docs

image

Solution

I think the easiest and most effective thing we can start with is adding metadata tags to our docs.

Add RestructuredText to rst files

.. meta::
    :description lang=en:
        A brief explanation of the content and purpose of this page

Add html_meta to every md files

---
jupytext:
  formats: md:myst
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.13
    jupytext_version: 1.14.4
kernelspec:
  display_name: Python 3 (ipykernel)
  language: python
  name: python3
html_meta:
  "description lang=en": "Some description"
  "keywords": "Key1, Key2"
  "property=og:locale": "en_US"  
---

@edublancas @idomic
We need to decide which tags to use and how to describe every article.

@edublancas
Copy link
Contributor

is there a way to add keywords to rst files?


I opened issues to track adding the metadata:

ploomber/jupysql#132
#290
ploomber/ploomber-engine#48

but let's keep this open so we revisit our SEO scores once those are in

@yafimvo
Copy link
Contributor

yafimvo commented Feb 16, 2023

is there a way to add keywords to rst files?

yes

.. meta::
    :description lang=en:
        Some description
    :keywords: Tag1, Tag2

@edublancas
Copy link
Contributor

To add metadata to a notebook:

    "html_meta": {
        "description lang=en": "Description",
        "keywords": "Key1, Key2",
        "property=og:locale": "en_US"
    }

Screenshot 2023-03-03 at 6 30 12 p m

@edublancas edublancas closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants