leoncvlt / loconotion

📄 Python tool to turn Notion.so pages into lightweight, customizable static websites
831 stars 133 forks source link

A page is not being parsed ... #37

Open aahnik opened 3 years ago

aahnik commented 3 years ago

I have my configuration like this:


name = "mysite"

page = "https://www.notion.so/top-level-page"

[site]

  [[site.meta]]
  name = "title"
  content = "Profile"
  [[site.meta]]
  name = "description"
  content = "Home page"

[pages]
  [pages.subpage]
    slug = "Support"

    [[pages.subpage.meta]]
    name = "title"
    content = "Support"
    [[pages.subpage.meta]]
    name = "robots"
    content = "noindex"

the urls are replaced with top-level-page and subpage for demonstration purposes here. the page with [pages.3e0fdde4ea6b09db986d7fbcb4a] is not being parsed.

Is it because it is not a sub-page of the main top level page in Notion ? The top level (index.html) page, does not have any link to the subpage.

But I still want that subpage to be there in that slug.

How can I do it ?

leoncvlt commented 3 years ago

You are correct, if there are no connections between your 3e0fdde4ea6b09db986d7fbcb4a page and https://www.notion.so/top-level-page then the page won't be scraped as loconotion has no way of "getting to it".

If you don't want to add a link to it you could do a separate scraping session and push that manually to your hosting service under your desired URL.

aahnik commented 3 years ago

If you don't want to add a link to it you could do a separate scraping session and push that manually to your hosting service under your desired URL.

I tried to do that, but

the page won't be scraped as loconotion has no way of "getting to it".

so is there a way to specify multiple pages in the configuration toml file ? loconotion will reach to it, using the link provided in the config file. And put it in that slug.

Plus the configuration is tedious. Would an yaml file be better ?

Like you need to write certain things repeatedly in the toml. Could there be a better format, that does not repeat itself.