Commit e22f8c4b authored by Shubham  .'s avatar Shubham .
Browse files

Add Python script to link main.css to the Maxima's documentation HTML files

parent cfac69ed
import os
files = os.listdir('.')
for fi in files:
if fi.endswith('.html'):
# open file and reach to the 62 line
fp = open(fi, 'r')
lines_list = fp.readlines()
lines_list.insert(61, '<link rel="stylesheet" type="text/css" href="./main.css">')
fp.close()
# link the css file
fp = open(fi, 'w')
fp.writelines(lines_list)
fp.close()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment