STRRL commented on issue #3648: URL: https://github.com/apache/incubator-opendal/issues/3648#issuecomment-1822586103
> Yeah I would take a try~ How about take a try at: https://chat.openai.com/g/g-9coOwgijL-opendal-guide-remastered I merged all the HTMLs into one large HTML with this script and use it as the knowledge. ```python import os from bs4 import BeautifulSoup def merge_html_files(directory, output_file): html_content = '' for subdir, dirs, files in os.walk(directory): for file in files: if file.endswith('.html'): with open(os.path.join(subdir, file), 'r', encoding='utf-8') as f: soup = BeautifulSoup(f, 'html.parser') for script in soup.find_all('script'): if 'location.replace' in script.text: script.decompose() body_content = soup.body if body_content: html_content += str(body_content) with open(output_file, 'w', encoding='utf-8') as f: f.write('<html><body>' + html_content + '</body></html>') merge_html_files('/Users/strrl/playground/GitHub/incubator-opendal/target/doc/opendal', 'merged.html') ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
