Comments (2)
We have confirmed that Gatsby will only throw an error for the first instance of an error and will not list all of the pages that are not working. We are going to look into what our options are to get more rich set of information.
from docs-website.
Unfortunately, there does not seem to be a way to easily determine all the pages that are not building successfully. Here's a recap of things we have tried:
npm run build
This will fail on the first occurrence of an issue and does not provide insight into what other pages are having issues.
Ping pages locally for HTTP status
I created a script that would ping all the pages found on the sitemap. The thinking was that a failing page might throw a 400-level status code we could use to determine if a page was failing. Unfortunately, the issue is purely client side and happens after the original page load (so we couldn't scrape the page content either).
Compare built files to expected files
When we run npm run build
, static HTML files get generated in the public
folder. We thought about comparing this to the expected output, but this also does not work due to Gatsby's fail-on-first-bad-file mechanism.
My suggestion would be to catch errors before we get to Gatsby. During the sanitize and normalize step, we should make sure to capture and errors. When it comes time to build the site post-migration, we should keep an eye out for patterns. If we find that we have to fix the same error multiple times, we should update the migration code and run it again.
Lastly, we may have the option to use the raw HTML with Gatsby instead of pasting it into the MDX file. This has it's own set of challenges, but is an option.
I'm going to close this ticket as I believe we have identified all that we can given the current setup.
from docs-website.
Related Issues (20)
- Summarize your docs request HOT 2
- Issue: NRQL syntax, clauses, and functions HOT 2
- Microsoft Teams example ist not uptodate HOT 2
- Lack of NPM prerequisites and installation procedures HOT 2
- Metric prefix is not correct HOT 3
- Broken links in the Synthetics New Runtime Transition page HOT 1
- Summarize your docs request HOT 4
- Infra agent log intergration document hase logtype examples that are not present in the log parsing docs. HOT 3
- Need to update the page since the Azure UI is changed HOT 2
- Null check shall be added in the example of MS Teams notification template. HOT 4
- Mismatch between Entity Health Status Colors in Documentation and Platform HOT 2
- Links to MSI not working HOT 2
- Missing code highlighting on Azure documentation HOT 2
- Include docs around entity expiration time HOT 5
- This is a bug! Please fix! HOT 2
- This is an enhancement request! HOT 2
- Issue: 404 HOT 2
- Issue: 404 HOT 1
- Issue: 404 when trying to get info on data type `targetType` HOT 4
- Dead link in navigation tile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-website.