
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Built-in `privacy` plugin produces different HTML output on second run Β· Issue #7616 Β· squidfunk/mkdocs-material
Description:
Context No response Bug description When running mkdocs build in a clean working copy of the project for the first time the privacy plugin fails to correctly "internalize" mermaid.min.js in the generated HTML documents. Running mkdocs bu...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Technology & Computing
- Video & Online Content
- Telecommunications
Content Management System {π}
What CMS is github.com built with?
Github.com operates using WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,653,634 visitors per month in the current month.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,316,035 paying customers.
The estimated monthly recurring revenue (MRR) is $22,327,346.
The estimated annual recurring revenues (ARR) are $267,928,149.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
Keywords {π}
squidfunk, issue, bug, run, build, privacy, plugin, mkdocs, script, sign, builtin, project, resolved, open, projects, html, carsten, correctly, generated, body, rendered, reporting, reproduce, file, commented, react, navigation, mkdocsmaterial, issues, pull, requests, discussions, actions, security, produces, output, closed, description, response, running, time, changing, srchttpsunpkgcommermaiddistmermaidminjsscript, srcassetsexternalunpkgcommermaiddistmermaidminjsscript, minimal, reproducer, real, world, related, links,
Topics {βοΈ}
correctly reference assets/external/unpkg 40-mermaid-asset-incorrectly-internalized possibly related issues open projects privacy plugin produces privacy plugin fails `privacy` plugin produces running mkdocs build rerunning mkdocs build personal information built run mkdocs build assets/external/unpkg bug resolved issue bug reporting guidelines assets/javascripts/bundle clean working copy comment metadata assignees generated site/index real world project generated html documents bug built projects milestone discussions issue anymore attached links bug report minimal reproduction info plugin great project built rendered correctly deterministically produce zip steps files browser race condition milestone relationships html output minimal reproducer changing inputs github reporting zip file completed sign inspect build mermaid correctly run /unpkg diagrams
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Built-in `privacy` plugin produces different HTML output on second run
articleBody:### Context
_No response_
### Bug description
When running `mkdocs build` in a clean working copy of the project for the first time the privacy plugin fails to correctly "internalize" `mermaid.min.js` in the generated HTML documents.
Running `mkdocs build` a second time - without changing anything else - will correctly reference `assets/external/unpkg.com/mermaid@11/dist/mermaid.min.js`.
For example see the diff between the first and the second run on `index.html`:
```diff
--- a/index_first_run.html
+++ b/index_second_run.html
@@ -263,7 +263,7 @@
<script src="assets/javascripts/bundle.525ec568.min.js"></script>
- <script src="https:/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>
+ <script src="assets/external/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>
</body>
```
**Note**: Somehow in the minimal reproducer the diagram is still being rendered (I did not yet figure out how) but in my real world project it is only rendered correctly after the second run. However rerunning `mkdocs build` without changing inputs should deterministically produce the same result in my opinion.
**PS**: Thank you for the great project, I really enjoy mkdocs-material π
### Related links
- [Reporting a bug](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/)
- [Built-in privacy plugin](https://squidfunk.github.io/mkdocs-material/plugins/privacy/)
- [Diagrams](https://squidfunk.github.io/mkdocs-material/reference/diagrams/)
### Reproduction
[9.5.40-mermaid-asset-incorrectly-internalized.zip](https://github.com/user-attachments/files/17362180/9.5.40-mermaid-asset-incorrectly-internalized.zip)
### Steps to reproduce
1. Run `mkdocs build`
2. Inspect the generated `site/index.html`
- It contains `<script src="https:/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>` (in line 266 in my case on the very end of the file just before `</body>`)
3. Run `mkdocs build` again
4. Inspect the generated `site/index.html`
- It now contains `<script src="assets/external/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>` (in line 266 in my case on the very end of the file just before `</body>`)
5. This is the only difference between the two files
### Browser
_No response_
### Before submitting
- [X] I have read and followed the [bug reporting guidelines](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/).
- [X] I have attached links to [the documentation](https://squidfunk.github.io/mkdocs-material/), and possibly related [issues](https://github.com/squidfunk/mkdocs-material/issues) and [discussions](https://github.com/squidfunk/mkdocs-material/discussions).
- [X] I assure that I have [removed all customizations](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/#remove-customizations) before submitting this bug report.
- [X] I have attached a __.zip file__ with a [minimal reproduction](https://squidfunk.github.io/mkdocs-material/guides/creating-a-reproduction/) using the [built-in info plugin](https://squidfunk.github.io/mkdocs-material/plugins/info/).
author:
url:https://github.com/Carsten87
type:Person
name:Carsten87
datePublished:2024-10-14T10:02:07.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:3
url:https://github.com/7616/mkdocs-material/issues/7616
context:https://schema.org
headline:Built-in `privacy` plugin produces different HTML output on second run
articleBody:### Context
_No response_
### Bug description
When running `mkdocs build` in a clean working copy of the project for the first time the privacy plugin fails to correctly "internalize" `mermaid.min.js` in the generated HTML documents.
Running `mkdocs build` a second time - without changing anything else - will correctly reference `assets/external/unpkg.com/mermaid@11/dist/mermaid.min.js`.
For example see the diff between the first and the second run on `index.html`:
```diff
--- a/index_first_run.html
+++ b/index_second_run.html
@@ -263,7 +263,7 @@
<script src="assets/javascripts/bundle.525ec568.min.js"></script>
- <script src="https:/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>
+ <script src="assets/external/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>
</body>
```
**Note**: Somehow in the minimal reproducer the diagram is still being rendered (I did not yet figure out how) but in my real world project it is only rendered correctly after the second run. However rerunning `mkdocs build` without changing inputs should deterministically produce the same result in my opinion.
**PS**: Thank you for the great project, I really enjoy mkdocs-material π
### Related links
- [Reporting a bug](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/)
- [Built-in privacy plugin](https://squidfunk.github.io/mkdocs-material/plugins/privacy/)
- [Diagrams](https://squidfunk.github.io/mkdocs-material/reference/diagrams/)
### Reproduction
[9.5.40-mermaid-asset-incorrectly-internalized.zip](https://github.com/user-attachments/files/17362180/9.5.40-mermaid-asset-incorrectly-internalized.zip)
### Steps to reproduce
1. Run `mkdocs build`
2. Inspect the generated `site/index.html`
- It contains `<script src="https:/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>` (in line 266 in my case on the very end of the file just before `</body>`)
3. Run `mkdocs build` again
4. Inspect the generated `site/index.html`
- It now contains `<script src="assets/external/unpkg.com/mermaid@11/dist/mermaid.min.js"></script>` (in line 266 in my case on the very end of the file just before `</body>`)
5. This is the only difference between the two files
### Browser
_No response_
### Before submitting
- [X] I have read and followed the [bug reporting guidelines](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/).
- [X] I have attached links to [the documentation](https://squidfunk.github.io/mkdocs-material/), and possibly related [issues](https://github.com/squidfunk/mkdocs-material/issues) and [discussions](https://github.com/squidfunk/mkdocs-material/discussions).
- [X] I assure that I have [removed all customizations](https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/#remove-customizations) before submitting this bug report.
- [X] I have attached a __.zip file__ with a [minimal reproduction](https://squidfunk.github.io/mkdocs-material/guides/creating-a-reproduction/) using the [built-in info plugin](https://squidfunk.github.io/mkdocs-material/plugins/info/).
author:
url:https://github.com/Carsten87
type:Person
name:Carsten87
datePublished:2024-10-14T10:02:07.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:3
url:https://github.com/7616/mkdocs-material/issues/7616
Person:
url:https://github.com/Carsten87
name:Carsten87
url:https://github.com/Carsten87
name:Carsten87
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:3
interactionType:https://schema.org/CommentAction
userInteractionCount:3
External Links {π}(10)
- Monthly income for https://github.blog
- Profit of https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/
- How much profit does https://squidfunk.github.io/mkdocs-material/plugins/privacy/ make?
- Learn how profitable https://squidfunk.github.io/mkdocs-material/reference/diagrams/ is on a monthly basis
- How much money does https://squidfunk.github.io/mkdocs-material/ generate?
- What's the profit of https://squidfunk.github.io/mkdocs-material/contributing/reporting-a-bug/#remove-customizations?
- How much revenue does https://squidfunk.github.io/mkdocs-material/guides/creating-a-reproduction/ bring in?
- How much does https://squidfunk.github.io/mkdocs-material/plugins/info/ earn?
- How much does https://squidfunk.github.io/mkdocs-material/changelog/#9.5.41 pull in?
- What's the income generated by https://www.githubstatus.com/ each month?
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net