Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

DEVHUB-635: Use Local Plugin for Strapi publicationState, fix prefixPath on dev #784

Merged
merged 4 commits into from
Apr 28, 2021

Conversation

jestapinski
Copy link
Contributor

Staging

This PR switches us from using the gatsby-source-strapi NPM package to a local plugin version of it. This is because we are waiting for this PR to be formally merged but want to continue development in the meantime. This has zero impact on existing functionality. Once the plugin is added, we can swap back to the NPM package.

The main change is we want to support publicationState on Strapi, which allows us to fetch only published posts if we want or get all content (including drafts) for staging.

I also added the needed co-dependencies in our top-level package.json for building purposes. These too will be removed when we swap back.

@jestapinski jestapinski merged commit ef8b09d into strapi-new-articles Apr 28, 2021
@jestapinski jestapinski deleted the DEVHUB-635 branch April 28, 2021 20:09
jestapinski added a commit that referenced this pull request May 4, 2021
… Add TS (#792)

* DEVHUB-546 [Part 1] Strapi-based Author Page (No Article Grid) (#732)

* Add first working tag page for authors

* WIP first author page

* Add test and transform for pipeline

* DEVHUB-546: Pull in Snooty Articles (#733)

* Working author pages

* Update test data

* Avoid making a page twice

* DEVHUB-545 [Part 1]: Basic Article Rendering Pipeline (#743)

* Begin scaffolding strapi/article work

* Set up scaffolding for a potential pipeline

* WIP pipeline

* WIP pipeline

* Use a new template for Strapi

* Add in support for more fields

* Enumerate OG

* Add back in other articles at build time

* Add notes for next iteration

* Skip twitter for now

* DEVHUB-545 [Part 2]: Add Authors, Twitter (#750)

* Clean up some fields in transform

* Add authors into article

* Add Twitter

* Move twitter to transform

* Add articles to author tag page

* Remove cleanup note

* Cleanup commentary

* Use id vs _id

* DEVHUB-545: Add Headings to TOC (#751)

* Fix bad merge

* DEVHUB-622: Use Single "Article" Interface, Add TS Support (#779)

* Test TS in Autobuilder

* Add TS support at build time

* WIP using a class for strapi articles

* Begin to use class for Snooty articles

* Use a single rendering template

* Add config support for TS

* Add a default for the twitter node

* Add twitter creator

* Remove unused var

* Skip test we will be fixing later

* Cleanup functions in class defn

* Add module content

* Fix accidental typo

* DEVHUB-585 (Part 1): Support All Articles on Learn/Tag Pages (#780)

* Use single means of building a page

* Add description to interface and render card lists

* Clean up and add to learn page

* Add some typing for author/tag pages

* Implement sorting

* Add sorting disclaimer

* Fix search results to use Article interface

* Get filters working again

* Add _id field

* Fix CI tests

* Fix all tests

* DEVHUB-585: Add Strapi Articles to Search Indexing, RSS Feed (#781)

* Add strapiArticles to search RSS

* Add strapi articles to RSS feed

* Fix  images on staging (#782)

* DEVHUB-635: Use Local Plugin for Strapi publicationState, fix prefixPath on dev (#784)

* WIP move to using a local plugin

* Cleanup plugins, fix pathPrefix logic bug

* Expose publication state via ENV

* Shorten package.json

* DEVHUB-631: Add support for author, tag pages (#789)

* WIP getting author pages in order

* Add tag mapping

* Begin cleaning

* More cleaning

* Fix a bug for bios

* Remove unused code

* Extract new logic into new modules

* Remove dupe code

* Rename snooty author page

* Add first test

* Add test for author parsing

* xit flaky test for now
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.

1 participant