@liascript/exporter 2.4.5--0.10.22 → 2.5.1--0.10.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -1
- package/dist/index.js +1 -1
- package/package.json +5 -4
- package/src/export/android.ts +3 -2
- package/src/export/helper.ts +4 -0
- package/src/export/ims.ts +3 -1
- package/src/export/pdf.ts +45 -28
- package/src/export/project.ts +474 -0
- package/src/export/scorm12.ts +2 -1
- package/src/export/scorm2004.ts +2 -1
- package/src/export/web.ts +2 -1
- package/src/index.ts +60 -4
package/README.md
CHANGED
|
@@ -126,6 +126,13 @@ https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pagepdfoptions
|
|
|
126
126
|
--pdf-margin-left Left margin, accepts values labeled with units.
|
|
127
127
|
--pdf-preferCSSPageSize Give any CSS @page size declared in the page priority over what is declared in width and height or format options.
|
|
128
128
|
--pdf-omitBackground Hides default white background and allows capturing screenshots with transparency. Defaults to true.
|
|
129
|
+
|
|
130
|
+
Project settings:
|
|
131
|
+
|
|
132
|
+
--project-no-meta Disable the generation of meta information for OpenGraph and Twitter-cards.
|
|
133
|
+
--project-no-categories Disable the filter for categories/tags.
|
|
134
|
+
--project-category-blur Enable this and the categories will be blurred instead of deleted.
|
|
135
|
+
--project-generate-pdf PDFs are automatically generated and added to every card.
|
|
129
136
|
```
|
|
130
137
|
|
|
131
138
|
### SCORM1.2
|
|
@@ -290,7 +297,12 @@ $ liaex -i project/README.md --format ims --output course --ims-indexeddb
|
|
|
290
297
|
..
|
|
291
298
|
project/README.md
|
|
292
299
|
project/Lizenz.md
|
|
293
|
-
..
|
|
300
|
+
..Project settings:
|
|
301
|
+
|
|
302
|
+
--project-no-meta Disable the generation of meta information for OpenGraph and Twitter-cards.
|
|
303
|
+
--project-no-categories Disable the filter for categories/tags.
|
|
304
|
+
--project-category-blur Enable this and the categories will be blurred instead of deleted.
|
|
305
|
+
--project-generate-pdf PDFs are automatically generated and added to every card.
|
|
294
306
|
6041733 total bytes
|
|
295
307
|
archiver has been finalized and the output file descriptor has closed.
|
|
296
308
|
|
|
@@ -509,6 +521,146 @@ $ liaex --format pdf \
|
|
|
509
521
|
depending on the size of the course, this can take a while, please be patient...
|
|
510
522
|
```
|
|
511
523
|
|
|
524
|
+
### Project
|
|
525
|
+
|
|
526
|
+
Projects are a way to bundle a collection of courses and to make a custom overview page for it.
|
|
527
|
+
|
|
528
|
+
The input has to be a yaml file that looks like the following one:
|
|
529
|
+
|
|
530
|
+
```yml
|
|
531
|
+
title: >
|
|
532
|
+
<span style="background-color: rgba(0,106,179,0.75); padding: 5px; color: white">
|
|
533
|
+
My personal OER - collection
|
|
534
|
+
</span>
|
|
535
|
+
|
|
536
|
+
comment: >
|
|
537
|
+
This is used as a subtitle or as a description of your page
|
|
538
|
+
|
|
539
|
+
logo: https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/Universitaetsbibliothek_Freiberg_Fassade.jpg/1024px-Universitaetsbibliothek_Freiberg_Fassade.jpg
|
|
540
|
+
|
|
541
|
+
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/d/de/Logo_TU_Bergakademie_Freiberg.svg/242px-Logo_TU_Bergakademie_Freiberg.svg.png
|
|
542
|
+
|
|
543
|
+
footer: >
|
|
544
|
+
Simply add a custom footer - that can also contain HTML
|
|
545
|
+
<a href="https://liascript.github.io" target="_blank">Made with LiaScript</a>
|
|
546
|
+
|
|
547
|
+
# With this settings you can customize social metadata, og-graph for facebook or twitter
|
|
548
|
+
# if not present, the title, comment, and logo will be used.
|
|
549
|
+
# You can explicitly turn this of with the cmd-parameter --project-no-meta
|
|
550
|
+
meta:
|
|
551
|
+
title: OER-Collection
|
|
552
|
+
description: Sammlung der OER Inhalte der Arbeitsgruppe Softwareentwicklung und Robotik (TU Freiberg)
|
|
553
|
+
#image: url
|
|
554
|
+
|
|
555
|
+
# A collection is where you put all your courses into, all information, such as title, comment, logo, etc.
|
|
556
|
+
# will be taken from the links that you provide ...
|
|
557
|
+
collection:
|
|
558
|
+
|
|
559
|
+
- url: https://raw.githubusercontent.com/LiaScript/docs/master/README.md
|
|
560
|
+
- url: https://raw.githubusercontent.com/LiaBooks/LiaScript-Tutorial/main/README.md
|
|
561
|
+
- url: https://raw.githubusercontent.com/LiaPlayground/LiaScript_WeAreDevelopers2022/main/README.md
|
|
562
|
+
|
|
563
|
+
# Additionally it is possible to manually overwrite parameters
|
|
564
|
+
- url: https://raw.githubusercontent.com/LiaPlayground/LiaScript_Tutorial_Kigali/main/README.md
|
|
565
|
+
title: eLearning Africa Workshop 2022
|
|
566
|
+
comment: Shows only an introduction, please follow the links within the course.
|
|
567
|
+
# logo: https://another_image.jpg
|
|
568
|
+
# or leave, so that no card-image is added to your preview-cards
|
|
569
|
+
# logo:
|
|
570
|
+
|
|
571
|
+
# You can manually tag courses, if this has not been done within the main comment of the course.
|
|
572
|
+
# By default, these tags will be treated as categories, which can be used to navigate through
|
|
573
|
+
# your courses. To disable this, use the cmd-param --project-no-categories
|
|
574
|
+
#
|
|
575
|
+
# For smaller overviews, you can also use the --project-category-blur parameter.
|
|
576
|
+
# this will not hide the courses, that do not match, but instead blur them.
|
|
577
|
+
tags:
|
|
578
|
+
- Tutorial
|
|
579
|
+
- LiaScript
|
|
580
|
+
- OER
|
|
581
|
+
|
|
582
|
+
- html: >
|
|
583
|
+
<hr>
|
|
584
|
+
<h1>Some content in between</h1>
|
|
585
|
+
|
|
586
|
+
<p>You can add additional content in between to group your course collections or provide more information.</p>
|
|
587
|
+
|
|
588
|
+
# If you want to group multiple courses into one sub-collection, then instead of an "-url:"
|
|
589
|
+
# define another `collection`. All parameters can be changed as above. Additionally you can switch of images or comments,
|
|
590
|
+
# just by adding an empty attribute. And, it is also possible to add tags to every sub-course.
|
|
591
|
+
- title: Prozedurale Programmierung
|
|
592
|
+
comment: todo
|
|
593
|
+
collection:
|
|
594
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_ProzeduraleProgrammierung/master/00_Einfuehrung.md
|
|
595
|
+
#title: Rename the current course
|
|
596
|
+
#logo: Manually set an logo
|
|
597
|
+
#comment: Add a custom description, this will overwrite the comment within the course
|
|
598
|
+
# tags will be used for navigation and searching
|
|
599
|
+
#tags:
|
|
600
|
+
# - C++
|
|
601
|
+
# - Programmierung
|
|
602
|
+
# - Hardware
|
|
603
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_ProzeduraleProgrammierung/master/01_EingabeAusgabeDatentypen.md
|
|
604
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_ProzeduraleProgrammierung/master/02_OperatorenKontrollstrukturen.md
|
|
605
|
+
#- url: ...
|
|
606
|
+
|
|
607
|
+
# HTML content can be placed between cards
|
|
608
|
+
- html: >
|
|
609
|
+
<hr>
|
|
610
|
+
<h1>Softwareentwicklung</h1>
|
|
611
|
+
|
|
612
|
+
<p>todo</p>
|
|
613
|
+
|
|
614
|
+
- title: Softwareentwicklung
|
|
615
|
+
comment: Todo
|
|
616
|
+
grid: true # if you have larger collections and you want them to appear in a grid and not in a row, with some
|
|
617
|
+
# hidden content, then set the grid-parameter to true.
|
|
618
|
+
collection:
|
|
619
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/00_Einfuehrung.md
|
|
620
|
+
logo: # this is used to empty the default image icon
|
|
621
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/01_Software.md
|
|
622
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/02_DotNet.md
|
|
623
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/03_CsharpGrundlagenI.md
|
|
624
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/04_CsharpGrundlagenII.md
|
|
625
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/05_CsharpGrundlagenIII.md
|
|
626
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/06_ProgrammflussUndFunktionen.md
|
|
627
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/07_OOPGrundlagenI.md
|
|
628
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/08_OOPGrundlagenII.md
|
|
629
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/09_Vererbung.md
|
|
630
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/10_AbstrakteKlassenUndInterfaces.md
|
|
631
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/11_VersionsverwaltungI.md
|
|
632
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/12_VersionsverwaltungII.md
|
|
633
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/13_UML_Modellierung.md
|
|
634
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/14_UML_ModellierungII.md
|
|
635
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/15_UML_ModellierungIII.md
|
|
636
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/16_Testen.md
|
|
637
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/17_Dokumentation_BuildTools.md
|
|
638
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/18_ContinuousIntegration.md
|
|
639
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/19_Generics.md
|
|
640
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/20_Container.md
|
|
641
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/21_Delegaten.md
|
|
642
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/22_Events.md
|
|
643
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/23_Threads.md
|
|
644
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/24_Tasks.md
|
|
645
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/25_LINQ.md
|
|
646
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/26_DesignPattern.md
|
|
647
|
+
- url: https://raw.githubusercontent.com/TUBAF-IfI-LiaScript/VL_Softwareentwicklung/master/27_Anwendungen.md
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
Basic usage:
|
|
651
|
+
|
|
652
|
+
``` shell
|
|
653
|
+
liaex -i curriculum.yml --format project
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
If you want to add precompiled pdf to every course, then you simply have to add the `--project-generate-pdf` command.
|
|
657
|
+
Additionally, you can pass any pdf settings to customize the pdf output.
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
``` shell
|
|
661
|
+
liaex -i curriculum.yml --format project --project-generate-pdf --pdf-format A4
|
|
662
|
+
```
|
|
663
|
+
|
|
512
664
|
## TODOs & Contributions
|
|
513
665
|
|
|
514
666
|
* Further exporter
|