69 lines
2.7 KiB
Python
69 lines
2.7 KiB
Python
import json
|
|
import os
|
|
|
|
def main():
|
|
original_html_file = "/home/antigravity/medium-export/posts/2025-01-12_The-Quantum-Blueprint--How-Information-Shapes-Reality-and-Consciousness-41cd62a88d61.html"
|
|
image_map_file = "/home/antigravity/the-quantum-blueprint/docs/image_map.json"
|
|
output_html_file = "/home/antigravity/the-quantum-blueprint/docs/index.html"
|
|
|
|
with open(original_html_file, "r") as f:
|
|
html_content = f.read()
|
|
|
|
with open(image_map_file, "r") as f:
|
|
image_map = json.load(f)
|
|
|
|
# Replace CDN links with local links
|
|
for url, filename in image_map:
|
|
html_content = html_content.replace(url, f"original_assets/{filename}")
|
|
|
|
# Build the final HTML document
|
|
final_html = f"""<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>The Quantum Blueprint: How Information Shapes Reality and Consciousness (Original Preservation)</title>
|
|
<link rel="stylesheet" href="css/medium.css">
|
|
</head>
|
|
<body>
|
|
<div class="site-header">
|
|
<div class="preservation-notice">
|
|
<strong>Preservation Archive</strong><br>
|
|
This is the original Medium export of <em>The Quantum Blueprint</em>, preserved for posterity.<br>
|
|
<a href="https://canon.thefoldwithin.earth/posts/the-quantum-blueprint/">View the Definitive Sovereign Canon Version</a> |
|
|
<a href="https://github.com/mrhavens/the-quantum-blueprint">View the GitHub Repository</a> |
|
|
<a href="https://medium.com/@mark-havens/the-quantum-blueprint-how-information-shapes-reality-and-consciousness-41cd62a88d61">View Original on Medium</a>
|
|
</div>
|
|
</div>
|
|
|
|
<main class="post-content">
|
|
<header class="post-header">
|
|
<h1 class="post-title">The Quantum Blueprint: How Information Shapes Reality and Consciousness</h1>
|
|
<p class="post-subtitle">From particles to thoughts, uncover the hidden code that connects the universe and the mystery of our existence.</p>
|
|
<div class="post-meta">
|
|
<span>By Mark Randall Havens</span> · <span>January 12, 2025</span>
|
|
</div>
|
|
</header>
|
|
|
|
<article class="post-body">
|
|
{html_content}
|
|
</article>
|
|
</main>
|
|
|
|
<footer class="site-footer">
|
|
<div class="preservation-notice">
|
|
Archived natively on <a href="https://github.com/mrhavens/the-quantum-blueprint">GitHub</a>.
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
"""
|
|
|
|
with open(output_html_file, "w") as f:
|
|
f.write(final_html)
|
|
|
|
print(f"Generated {output_html_file}")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|