Get it archived in Wayback machine and other web archive sites ....
Arweave network is like Bitcoin, but for data: A permanent and decentralized web inside an open ledger. [0]
The InterPlanetary File System (IPFS) is a decentralized protocol, hypermedia, and peer-to-peer (P2P) network for distributed file storage and sharing. The shadow libraries Anna's Archive and Library Genesis host books via IPFS. [1]
[1] https://en.wikipedia.org/wiki/InterPlanetary_File_System
40 years - print and bind the google doc in 20 years, store it with their stuff when they leave the house.
60 years - publish the book buy a bunch of copies and distribute
100 years - it needs to be a very good book
Failing that, choose technologies that have been around for a while. PHP, Ruby, and Java have been around for 20+ years, and are still going strong. There is no hope that anything touching Node or npm will run in a year.
2. If you need a website, prefer a static site generator. If you need a dynamic site, periodically export a static version.
3. Don't count entirely on the hosting service, store offline copies (as a standard zip file) alongside other content of interest to heirs, such as a will. Distribute redundant copies to relatives.
You could also have the Internet Archive crawl your site to preserve it if the above is too much trouble, with it being accessible through Wayback.
https://help.archive.org/help/how-do-i-make-a-physical-donat...
https://help.archive.org/help/uploading-a-basic-guide/
https://hackernoon.com/the-long-now-of-the-web-inside-the-in...