You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for querying the WordPress global stylesheet (#1394)
* Use trademarked name
Signed-off-by: Joe Fusco <[email protected]>
* Add support for querying the global stylesheet
Signed-off-by: Joe Fusco <[email protected]>
* Add support for SSG approach to global styles
Signed-off-by: Joe Fusco <[email protected]>
* Add changeset for CLI
Signed-off-by: Joe Fusco <[email protected]>
* Add basic documentation
Signed-off-by: Joe Fusco <[email protected]>
* Add docs to sidebar
Signed-off-by: Joe Fusco <[email protected]>
* Remove json5 from allowlist
Signed-off-by: Joe Fusco <[email protected]>
---------
Signed-off-by: Joe Fusco <[email protected]>
Registered a new GraphQL field, `globalStylesheet`, that returns [wp_get_global_stylesheet](https://developer.wordpress.org/reference/functions/wp_get_global_stylesheet/) and provides the same arguments as the core WordPress function.
description: Strategies for adding the WordPress global stylesheet to your application
5
+
---
6
+
7
+
The [Faust.js WordPress plugin](https://wordpress.org/plugins/faustwp) adds the ability to query the WordPress global stylesheet using the `globalStylesheet` field.
8
+
9
+
## WordPress global styles at build time
10
+
11
+
The WordPress global stylesheet can be grabbed at build time by using the `faust generateGlobalStylesheet` command.
12
+
This will create a new file named `globalStylesheet.css` in the root of your application.
Faust transforms your traditional WordPress installation into a flexible headless CMS.
11
+
Faust.js™ transforms your traditional WordPress installation into a flexible headless CMS.
12
12
13
13
== Description ==
14
14
15
-
In conjunction with the [Faust NPM packages](https://www.npmjs.com/search?q=%40faustwp), Faustenables a decoupled front-end to authenticate with WordPress through GraphQL mutations and REST API endpoints. It is the bridge between a Faust-powered front-end application, and a WordPress backend.
15
+
In conjunction with the [Faust.js™ NPM packages](https://www.npmjs.com/search?q=%40faustwp), the Faust.js™ WordPress plugin enables a decoupled front-end to authenticate with WordPress through GraphQL mutations and REST API endpoints. It is the bridge between a Faust.js™ powered front-end application, and a WordPress backend.
16
16
17
17
The plugin also provides useful options for headless sites, such as the ability to:
18
18
@@ -25,51 +25,51 @@ The plugin also provides useful options for headless sites, such as the ability
25
25
1. Search for the plugin in WordPress under "Plugins -> Add New".
26
26
2. Click the “Install Now” button, followed by "Activate".
27
27
28
-
That's it! For more information on getting started with headless WordPress, see [Getting Started with Faust](https://faustjs.org/docs/tutorial/dev-env-setup).
28
+
That's it! For more information on getting started with headless WordPress, see [Getting Started with Faust.js](https://faustjs.org/docs/tutorial/dev-env-setup).
29
29
30
30
== Frequently Asked Questions ==
31
31
32
32
= If I need more support, where should I ask questions? =
33
-
Use one of the channels below to contact the Faust team for support.
34
-
[GitHub](https://github.com/wpengine/faustjs) - Faust GitHub documentation and codebase.
33
+
Use one of the channels below to contact the Faust.js team for support.
34
+
[GitHub](https://github.com/wpengine/faustjs) - Faust.js GitHub documentation and codebase.
35
35
[Discord](https://discord.gg/J2khkF9XYK) - Interactive chat support on Discord.
36
36
37
37
= Where can I find more information about development and future features for this plugin? =
38
38
39
-
Great question! The development team posts weekly summaries of sprints related to Faust, [here](https://faustjs.org/blog).
39
+
Great question! The development team posts weekly summaries of sprints related to Faust.js, [here](https://faustjs.org/blog).
40
40
41
-
= Why the name “Faust”? =
41
+
= Why the name “Faust.js”? =
42
42
43
43
Johann Faust was a German printer and was instrumental in the invention of the printing press, along with his partner Johann Gutenberg. In the same way the printing press democratized the spread of information, the mission of Faust.js is to support and further the vision of WordPress to democratize publishing on the web.
44
44
45
45
== Screenshots ==
46
46
47
47
1. The settings page
48
-
2. Portfolio, blog, and basic blueprints for headless sites built with Faust
48
+
2. Portfolio, blog, and basic blueprints for headless sites built with Faust.js
49
49
3. A code snippet
50
50
51
51
plugins/faustwp/.wordpress-org/screenshot-1.png
52
52
plugins/faustwp/.wordpress-org/screenshot-2.png
53
53
plugins/faustwp/.wordpress-org/screenshot-3.png
54
54
55
-
== Changelog ==
56
-
57
-
= 0.8.5 =
58
-
59
-
### Patch Changes
60
-
61
-
- eaa5e48: Added the `shouldShowFaustToolbar` field on the `viewer` WPGraphQL type to determine if the Faust toolbar should be shown based on user preferences.
62
-
63
-
= 0.8.4 =
64
-
65
-
### Patch Changes
66
-
67
-
- 43205e1: Bug Fix: "Post and Category URL rewrites" setting ignores protocol of configured front-end site URL
68
-
69
-
= 0.8.3 =
70
-
71
-
### Patch Changes
72
-
73
-
- c4696ef: - Added new filter `faustwp_exclude_from_public_redirect`, allowing WordPress plugins and themes to exclude certain routes from being redirected when the [enable public route redirects](https://faustjs.org/docs/faustwp/settings#enabling-public-route-redirects) setting is active.
74
-
75
-
[View the full changelog](https://faustjs.org/docs/changelog/faustwp)
55
+
== Changelog ==
56
+
57
+
= 0.8.5 =
58
+
59
+
### Patch Changes
60
+
61
+
- eaa5e48: Added the `shouldShowFaustToolbar` field on the `viewer` WPGraphQL type to determine if the Faust toolbar should be shown based on user preferences.
62
+
63
+
= 0.8.4 =
64
+
65
+
### Patch Changes
66
+
67
+
- 43205e1: Bug Fix: "Post and Category URL rewrites" setting ignores protocol of configured front-end site URL
68
+
69
+
= 0.8.3 =
70
+
71
+
### Patch Changes
72
+
73
+
- c4696ef: - Added new filter `faustwp_exclude_from_public_redirect`, allowing WordPress plugins and themes to exclude certain routes from being redirected when the [enable public route redirects](https://faustjs.org/docs/faustwp/settings#enabling-public-route-redirects) setting is active.
74
+
75
+
[View the full changelog](https://faustjs.org/docs/changelog/faustwp)
0 commit comments