Git Product home page Git Product logo

arnaudvalensi.github.io's People

Contributors

arnaudvalensi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arnaudvalensi.github.io's Issues

Color on certain words

Hi Arnaud, I just came across your delicate project.

One thing that I have been wondering, how do you get the text highlighting to work (as shown by the image below).
image
The image is taken from here.

Columns of Blog page on Notion

Hi, could you please show me the name of all the columns on the Blog page? I have title, date, description, and slug but it occurred bug when deploying.
Capture1
Capture2

raw_page=page.get() returns now None

Hello Arnaud,
I tried to follow you example, but failed with error

None
Traceback (most recent call last):
  File "./bin/get-blog-posts.py", line 147, in <module>
    to_markdown(root_page_id, ignore=ignore_root)
  File "./bin/get-blog-posts.py", line 121, in to_markdown
    if 'format' in raw_page and 'page_cover' in raw_page['format']:
TypeError: argument of type 'NoneType' is not iterable

Seems like get() now returns None, Python 3.8.5, notion.version
Out[2]: '0.0.6'
from pip.

Error `requests.exceptions.HTTPError: Invalid input.`

This my Repo
My Notion File
My Run:

Run pipenv install
Creating a virtualenv for this project…
Pipfile: /home/runner/work/fillyagioro.github.io/fillyagioro.github.io/Pipfile
Using /opt/hostedtoolcache/Python/3.8.9/x64/bin/python3.8 (3.8.9) to create virtualenv…
created virtual environment CPython3.8.9.final.0-64 in 360ms
  creator CPython3Posix(dest=/home/runner/.local/share/virtualenvs/fillyagioro.github.io-S0ycJAFM, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/runner/.local/share/virtualenv)
    added seed packages: pip==21.0.1, setuptools==56.0.0, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator


Successfully created virtual environment!
Virtualenv location: /home/runner/.local/share/virtualenvs/fillyagioro.github.io-S0ycJAFM
Pipfile.lock (e734c5) out of date, updating to (f33982)…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…

Building requirements...

Resolving dependencies...

Success!
Updated Pipfile.lock (f33982)!
Installing dependencies from Pipfile.lock (f33982)…
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
-> Cleaning the "content/blog" folder
Traceback (most recent call last):
  File "./bin/get-blog-posts.py", line 146, in <module>
    to_markdown(root_page_id, ignore=ignore_root)
  File "./bin/get-blog-posts.py", line 109, in to_markdown
    page = client.get_block(page_id)
  File "/home/runner/.local/share/virtualenvs/fillyagioro.github.io-S0ycJAFM/lib/python3.8/site-packages/notion/client.py", line 118, in get_block
    block = self.get_record_data("block", block_id, force_refresh=force_refresh)
  File "/home/runner/.local/share/virtualenvs/fillyagioro.github.io-S0ycJAFM/lib/python3.8/site-packages/notion/client.py", line 111, in get_record_data
    return self._store.get(table, id, force_refresh=force_refresh)
  File "/home/runner/.local/share/virtualenvs/fillyagioro.github.io-S0ycJAFM/lib/python3.8/site-packages/notion/store.py", line 184, in get
    self.call_load_page_chunk(id)
  File "/home/runner/.local/share/virtualenvs/fillyagioro.github.io-S0ycJAFM/lib/python3.8/site-packages/notion/store.py", line 286, in call_load_page_chunk
    recordmap = self._client.post("loadPageChunk", data).json()["recordMap"]
  File "/home/runner/.local/share/virtualenvs/fillyagioro.github.io-S0ycJAFM/lib/python3.8/site-packages/notion/client.py", line 209, in post
    raise HTTPError(
requests.exceptions.HTTPError: Invalid input.
Error: Process completed with exit code 1.

Install and Build fail

github action: Install and Build fail

Successfully created virtual environment
-> Cleaning the "content/blog" folder
Unsupported type: callout
Unsupported type: column_list
Unsupported type: column
Unsupported type: column
Unsupported type: callout
Unsupported type: column_list
Unsupported type: column
Unsupported type: column
Unsupported type: callout
Unsupported type: factory
Unsupported type: column_list
Unsupported type: column
Unsupported type: column
Unsupported type: callout
Unsupported type: column_list
Unsupported type: column
Unsupported type: column
Unsupported type: callout
-> Imported "d.md"
-> Imported "ffffff.md"
-> Imported "dd.md"
Done: imported 3 pages.
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
warning [email protected]: Invalid bin field for "url-loader".
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "gatsby > @pmmmwh/[email protected]" has incorrect peer dependency "react-refresh@^0.8.2".
warning "gatsby > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "gatsby > gatsby-cli > gatsby-recipes > [email protected]" has incorrect peer dependency "[email protected]".
warning "gatsby > gatsby-cli > gatsby-recipes > [email protected]" has incorrect peer dependency "[email protected]".
warning "gatsby > gatsby-cli > gatsby-recipes > [email protected]" has incorrect peer dependency "[email protected]".
warning "gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @emotion/babel-plugin-jsx-pragmatic > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > [email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "gatsby-plugin-emotion > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
warning "gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @emotion/[email protected]" has unmet peer dependency "@babel/core@^7.0.0".
[4/4] Building fresh packages...
Done in 65.20s.
yarn run v1.22.5
$ gatsby build
success open and validate gatsby-configs - 0.041s
success load plugins - 1.181s
success onPreInit - 0.055s
success delete html and css files from previous builds - 0.003s
success initialize cache - 0.009s
success copy gatsby files - 0.041s
success onPreBootstrap - 0.011s
success createSchemaCustomization - 0.131s
success Checking for changed pages - 0.001s
success source and transform nodes - 0.157s
success building schema - 0.441s
success createPages - 0.040s
success Checking for changed pages - 0.000s
success createPagesStatefully - 0.108s
success update schema - 0.041s
success onPreExtractQueries - 0.001s
error There was an error in your GraphQL query:

Expected type MarkdownRemarkFieldsEnum, found frontmatter___date. Did you mean the enum value frontmatter___title?
error There was an error in your GraphQL query:

Cannot query field "description" on type "MarkdownRemarkFrontmatter".

If you don't expect "description" to exist on the type "MarkdownRemarkFrontmatter" it is most likely a typo.
However, if you expect "description" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "description" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "MarkdownRemarkFrontmatter":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
error There was an error in your GraphQL query:

Cannot query field "featured" on type "MarkdownRemarkFrontmatter".

If you don't expect "featured" to exist on the type "MarkdownRemarkFrontmatter" it is most likely a typo.
However, if you expect "featured" to exist there are a couple of solutions to common problems:
failed extract queries from components - 0.415s

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "featured" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "MarkdownRemarkFrontmatter":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.