-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Attempting to simplify RSS generation code. - Attempting to make the FAQ generation code more generic.
- Loading branch information
1 parent
e2a8a0e
commit 5b5d0b7
Showing
11 changed files
with
167 additions
and
511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,8 +42,12 @@ jobs: | |
|
||
- name: Generate FAQ Markdown | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPO_NAME: ${{ github.repository }} | ||
PAGE_NAME: "faq" | ||
run: node .github/scripts/generate-faq.js | ||
|
||
- name: Generate Developer FAQ Markdown | ||
env: | ||
PAGE_NAME: "developer-faq" | ||
run: node .github/scripts/generate-faq.js | ||
|
||
- name: Generate Latest News Markdown | ||
|
@@ -113,7 +117,6 @@ jobs: | |
|
||
generate_rss: | ||
runs-on: ubuntu-latest | ||
needs: generate_markdown | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
@@ -127,22 +130,26 @@ jobs: | |
run: npm install rss markdown-it feedparser-promised deep-equal glob cheerio | ||
|
||
- name: Generate RSS Feed | ||
env: | ||
SITE_TITLE: "FCP Cafe" | ||
SITE_URL: "https://fcp.cafe" | ||
run: node .github/scripts/generate-rss.js || echo "An error occurred. See the stack trace above for more details." | ||
|
||
- name: Commit and push if it's necessary | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git stash | ||
git pull --rebase origin main | ||
git stash pop | ||
if git diff --exit-code --quiet docs/rss.xml; then | ||
echo "No changes to commit" | ||
else | ||
git add docs/rss.xml | ||
git commit -m "Update rss.xml" | ||
git push | ||
fi | ||
echo "Checking for changes to commit..." | ||
git status | ||
echo "Adding changes..." | ||
git add -A docs/rss.xml | ||
git status | ||
echo "Committing changes..." | ||
git commit -m "Update RSS Feed" || echo "No changes to commit" | ||
git status | ||
echo "Pushing changes..." | ||
git push | ||
echo "Completed commit step." | ||
publish: | ||
name: Publish to retype branch | ||
|
@@ -156,16 +163,6 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: docs | ||
path: docs/ | ||
|
||
- name: Copy rss.xml to a temporary location | ||
run: | | ||
cp docs/rss.xml /tmp/rss.xml | ||
- name: Build and publish using Retype | ||
uses: retypeapp/action-build@latest | ||
with: | ||
|
@@ -176,33 +173,6 @@ jobs: | |
with: | ||
update-branch: true | ||
|
||
- name: Checkout retype branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: retype | ||
|
||
- name: Pull latest changes from retype branch | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git pull origin retype | ||
- name: Copy rss.xml from the temporary location to retype branch | ||
run: | | ||
cp /tmp/rss.xml ./rss.xml | ||
- name: Commit and push if it's necessary | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add rss.xml | ||
if git diff --exit-code --staged; then | ||
echo "No changes to commit" | ||
else | ||
git commit -m "Update rss.xml" | ||
git push | ||
fi | ||
- name: Purge CloudFlare cache | ||
run: | | ||
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/purge_cache" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Console spam from FxPlug4 | ||
|
||
When you create an FxPlug4 plugin, you'll see a lot of these messages in Console: | ||
|
||
![](/static/fcpx-console-spam.png) | ||
|
||
Unfortunately, there's no way to stop it. It’s harmless, though. | ||
|
||
I think what it’s trying to tell us is that the FxPlug4 process doesn’t have some files related to the UI that Apple display in Motion and Final Cut Pro. | ||
|
||
The reason it cares about this is because they use `ViewBridge` to show `NSView`'s from your process in their process. But because of the way they show them, it ends up not mattering. | ||
|
||
I wish there were a way to turn off the spew, but it’s in macOS itself. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### What is disableDRT in a FCPXML? | ||
|
||
**DRT** is **dynamic range tracking**. | ||
|
||
It’s an internal name the Final Cut Pro team use for the new automatic HDR settings. | ||
|
||
The **disableDRT** setting in the FCPXML tells the app not to enable the automatic HDR settings on older projects created before the setting existed. | ||
|
||
If you have existing projects and want to ensure they render the same as they did in previous versions, you don’t want to touch that value. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Frequently Asked Questions | ||
|
||
This page is dedicated to answering the most common developer questions about FxPlug4, Workflow Extensions, etc. | ||
|
||
You can use the Search Tool at the top right of this page to search the FAQ. | ||
|
||
--- | ||
|
||
!!! | ||
Something missing or have a question? [Learn more here!](/contribute/) | ||
!!! | ||
|
||
--- | ||
|
||
{{ include "generated-developer-faq" }} | ||
|
||
--- | ||
|
||
!!! | ||
Something missing or have a question? [Learn more here!](/contribute/) | ||
!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
label: FAQ | ||
icon: book | ||
image: /static/thumbnail.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.