renamed some functions
- renamed generate-readme-file to generate-readme-page - renamed generate-files-file to generate-files-page
This commit is contained in:
parent
0216eacef6
commit
76b127175c
1 changed files with 4 additions and 4 deletions
8
main.scm
8
main.scm
|
@ -125,14 +125,14 @@ string-block
|
|||
(for-each (lambda (source-file) (generate-source-file source-file))
|
||||
source-files-list))
|
||||
|
||||
(define (generate-files-file files-list-page-path source-files-list)
|
||||
(define (generate-files-page files-list-page-path source-files-list)
|
||||
(write-file
|
||||
files-list-page-path
|
||||
(populate-html-template (string-append "<ul>\n"
|
||||
(generate-list-of-files source-files-list)
|
||||
"</ul>\n"))))
|
||||
|
||||
(define (generate-readme-file index-page-path)
|
||||
(define (generate-readme-page index-page-path)
|
||||
(write-file
|
||||
index-page-path
|
||||
(populate-html-template (md->html (git-file->string "README.md")))))
|
||||
|
@ -146,8 +146,8 @@ string-block
|
|||
(define (generate-html-files)
|
||||
(let ((source-files-list (git-repository->paths-list)))
|
||||
(generate-repository-directory)
|
||||
(generate-readme-file (make-pathname REPOSITORY-DIRECTORY "index.html"))
|
||||
(generate-files-file (make-pathname REPOSITORY-DIRECTORY "files.html") source-files-list)
|
||||
(generate-readme-page (make-pathname REPOSITORY-DIRECTORY "index.html"))
|
||||
(generate-files-page (make-pathname REPOSITORY-DIRECTORY "files.html") source-files-list)
|
||||
(generate-source-files source-files-list)))
|
||||
|
||||
(define (if-git-directory-generate-html-files)
|
||||
|
|
Loading…
Reference in a new issue