Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

support for auto pulling gdocs #621

Closed
wants to merge 6 commits into from
Closed

support for auto pulling gdocs #621

wants to merge 6 commits into from

Conversation

nthomsencph
Copy link

@nthomsencph nthomsencph commented Feb 13, 2022

The purpose of this pull request is to add support for the export of specified Google docs as .docx files into the /_word directory prior to the call to the word2post.sh script. This enables users to store their blog posts securely in Drive and then automatically pull them on build. Note that these documents needs to be publicly available in order for this to work. However, since the goal is to publish on a fastpage, I don't think this should raise concerns for users.

There are two additions in this request:

  • The _action_files/gdocs2word.py script which uses the request lib to pull down documents through a download link.

  • A gdoc_ids.json file that holds ids of the document that one wants to include.
    Users simply need to add docs, e.g.

{
    "gdoc_ids": [
        "1d1N-2j56BVRVXOFPRlJRdgictahCVMGmklRtYRVGD1E"
    ]
}

Document titles are automatically retrieved from the request header.

Copy link

@Peter-Rambeck Peter-Rambeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why

@Peter-Rambeck
Copy link

That's it

@nthomsencph
Copy link
Author

That's it

@Peter-Rambeck could you clarify? This enables users to conveniently write in Google Docs. This is in addition to .docx which is already supported.

@Peter-Rambeck
Copy link

Sorry, it's dummy comment as comments was somehow required to proceed.

@nthomsencph
Copy link
Author

nthomsencph commented May 7, 2022

Sorry, it's dummy comment as comments was somehow required to proceed.

No worries. Feedback encouraged. Speaking of, hopping for @hamelsmu to take a look soon ⭐️

@hamelsmu
Copy link
Member

NB: I am writing this comment on all open issues and PRs

Thank you for opening this PR, and I'm really sorry I haven't gotten around to reviewing it. All of my time has been focused on nbdev. In the new version of nbdev, we knew that we wanted to include blogging rather than it being a separate project. We realized that Quarto, which the new version of nbdev is built on, is much better than fastpages. Rather than keep this project going, we are recommending that people migrate to Quarto as we think that will be more powerful for users and is a much better tool for blogging.

I've written a detailed migration guide with some tools that will hopefully make the process of switching much easier. Overall I think it will be worth it for users.

My apologies again for not getting to this issue sooner. Will close this PR with this PR #657, where we are letting people know that we are deprecating this project. Thanks again for your support and for using fastpages! 🙇🏽

@hamelsmu hamelsmu closed this Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants