Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Javarome committed Aug 30, 2024
1 parent 88d6443 commit f785823
Show file tree
Hide file tree
Showing 77 changed files with 1,068 additions and 3,123 deletions.
25 changes: 16 additions & 9 deletions RR0ContentStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ export interface FileVisitor {

export class RR0ContentStep extends ContentStep<HtmlRR0SsgContext> {

constructor(contentConfigs: ContentStepConfig[], outputFunc: OutputFunc,
protected fileVisitors: FileVisitor[] = [],
protected contentVisitors: ContentVisitor[] = [], protected force: boolean) {
super(contentConfigs, outputFunc)
constructor(
contentConfigs: ContentStepConfig[], outputFunc: OutputFunc, protected fileVisitors: FileVisitor[] = [],
protected contentVisitors: ContentVisitor[] = [], protected force: boolean, name: string,
protected toProcess: Set<string>) {
super(contentConfigs, outputFunc, name)
}

static setTimeFromPath(context: HtmlRR0SsgContext, filePath: string): TimeContext | undefined {
Expand Down Expand Up @@ -52,17 +53,24 @@ export class RR0ContentStep extends ContentStep<HtmlRR0SsgContext> {
return super.write(context, outputFile)
}

protected async shouldProcessFile(context: HtmlRR0SsgContext, _contentsConfig: ContentStepConfig): Promise<boolean> {
const processFile = this.force || await super.shouldProcessFile(context, _contentsConfig)
protected async shouldProcessFile(context: HtmlRR0SsgContext, contentsConfig: ContentStepConfig): Promise<boolean> {
const fileHasChanged = await super.shouldProcessFile(context, contentsConfig)
const fileIsForced = this.toProcess.has(context.file.name)
const processFile = this.force || fileIsForced || fileHasChanged
if (processFile) {
this.toProcess.add(context.file.name)
}
for (const fileVisitor of this.fileVisitors) {
await fileVisitor.visit(context, processFile)
}
return processFile
}

protected async shouldProcessContent(context: HtmlRR0SsgContext,
_contentsConfig: ContentStepConfig): Promise<boolean> {
const should = this.force || await super.shouldProcessContent(context, _contentsConfig)
contentsConfig: ContentStepConfig): Promise<boolean> {
const fileIsForced = this.toProcess.has(context.file.name)
const showProcess = await super.shouldProcessContent(context, contentsConfig)
const should = this.force || fileIsForced || showProcess
if (should) {
for (const contentVisitor of this.contentVisitors) {
await contentVisitor.visit(context)
Expand All @@ -71,7 +79,6 @@ export class RR0ContentStep extends ContentStep<HtmlRR0SsgContext> {
return should
}


protected async postExecute(result: ContentStepResult): Promise<ContentStepResult> {
await super.postExecute(result)
for (const fileVisitor of this.fileVisitors) {
Expand Down
12 changes: 7 additions & 5 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const copies = copiesArg ? copiesArg.split(",") : [
"people/index.js", "people/index.css", "people/witness/index.css",
"search/SearchComponent.mjs", "search/index.json", "search/search.css",
"source/index.css",
"link.css",
"link.css", "quote.css",
"time/DualRangeComponent.mjs",
"index/index.js", "lang/form.js", "lang/form.css", "lang/speech.js", "lang/speech.css",
"croyance/divin/theisme/mono/livre/islam/coran/index.js"
Expand Down Expand Up @@ -305,11 +305,13 @@ timeService.getFiles().then(async (timeFiles) => {
const ssg = new Ssg(config)
const getOutputPath = (context: SsgContext): string => path.join(outDir, context.file.name)
const force = args.force === "true"
const structuralStep = new RR0ContentStep(
const toProcess = new Set<string>(
["people/index.html", "people/witness/index.html", "people/militaires.html", "people/scientifiques.html", "people/astronomes.html", "people/politicians.html", "people/dirigeants.html", "people/pilotes.html", "people/contactes.html", "people/ufologues.html", "tech/info/Personnes.html", "people/Contributeurs.html"])
const includeStep = new RR0ContentStep(
[htAccessToNetlifyConfig, {roots: contentRoots, replacements: [new SsiIncludeReplaceCommand()], getOutputPath}],
outputFunc, [], [], force
outputFunc, [], [], force, "content includes", toProcess
)
ssg.add(structuralStep)
ssg.add(includeStep)
ssg.add(ufoCasesStep)
ssg.add(...peopleSteps)
if (contentRoots) {
Expand All @@ -328,7 +330,7 @@ timeService.getFiles().then(async (timeFiles) => {
new OpenGraphCommand(outDir, timeFiles, baseUrl, timeTextBuilder)
]
ssg.add(new RR0ContentStep([{roots: contentRoots, replacements: contentReplacements, getOutputPath}],
outputFunc, [], contentVisitors, force))
outputFunc, [], contentVisitors, force, "contents replacements", toProcess))
}
if (args.books) {
ssg.add(await BookDirectoryStep.create(outputFunc, config, bookMeta, bookLinks))
Expand Down
11 changes: 7 additions & 4 deletions croyance/divin/theisme/mono/livre/islam/Hegire.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<!--#include virtual="/header-start.html" -->
<title>Hégire</title>
<!--#include virtual="/header-end.html" -->
<p>L'hégire est l'émigration <time>622</time> de <span class="people">Mohammed</span> (et certains de ses compagnons)
depuis <span class="place">La Mecque</span> (<i lang="ar">Mekka</i>) vers <span class="place">Médine</span> (<i
<p>L'hégire (<span lang="ar-Latn">hijra</span>, <span lang="ar">هِجْرَة</span>) est l'émigration <time>622</time> de
<span class="people">Mohammed</span> (et certains de ses compagnons) depuis <span class="place">La Mecque</span> (<i
lang="ar">Mekka</i>) vers <span class="place">Médine</span> (<i
lang="ar">Yathrib</i> à l'époque).</p>
<p>On distingue parfois dans le <a href="/croyance/divin/theisme/mono/livre/islam/coran">Coran</a> les sourates
rédigées avant (Coran mecquois) et après (Coran médinois) l'Hégire.</p>
<p>De cet événement sera dérivé le calendrier hégirien, un calendrier lunaire de 354 à 355 jours commençant le <time>622-07
-16</time>, premier jour où la nouvelle <a href="/place/systeme/solaire/planete/terre/lune">Lune</a> fut visible.</p>
<p>On distingue parfois dans le <a href="/croyance/divin/theisme/mono/livre/islam/coran">Coran</a> les sourates rédigées
avant (Coran mecquois) et après (Coran médinois) l'Hégire.</p>
<!--#include virtual="/footer.html" -->
18 changes: 14 additions & 4 deletions croyance/divin/theisme/mono/livre/islam/coran/023/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,31 @@
<p lang="fr">puis Nous en fîmes une goutte de sperme dans un reposoir solide.</p>
<p lang="ar">ثُمَّ جَعَلْنَٰهُ نُطْفَةًۭ فِى قَرَارٍۢ مَّكِينٍۢ</p>
<p lang="ar-Latn">Thumma Ja`alnāhu Nuţfatan Fī Qarārin Makīnin</p>
<p lang="en">then placed each ˹human˺ as a sperm-drop1 in a secure place,</p>
<p lang="en">then placed each ˹human˺ as a sperm-drop <span class="note">Nuṭfah refers to the union of male and female gametes (sperm and egg) which results in the zygote after fertilization.</span>
in a secure place,</p>
</li>
<li id="14">
<p lang="fr">Ensuite, Nous avons fait du sperme une adhérence ; et de l'adhérence, Nous avons créé un embryon ;
puis, de cet embryon, Nous avons créé des os et Nous avons revêtu les os de chair. Ensuite, Nous l'avons
transformé en une tout autre création. Gloire à Dieu le Meilleur des créateurs !</p>
transformé en une tout autre création. Gloire à Dieu le Meilleur des créateurs ! <span class="note">Ceci
reflète les connaissances admises de l'époque <span class="source">Galien, Claude : "<a
href="https://data.bnf.fr/15023136/claude_galien_de_la_formation_du_f_tus/">De la formation du
fœtus</a>", traduit du grec au syriaque sur ordre de <span class="people">Khosro Ier</span> (<i lang="gr">
Chosroès</i> en grec) à <span class="place">Gundishapur</span>, puis repris par <span
class="people">Al Harith Ibn Kalada</span>, oncle du Prophète, qui avait étudié dans cette école de
Gundishapur</span> contredit l'embryologie moderne où l'ensemble de ces éléments se forme en même temps (c.-à-d.
on n'observe jamais d'abord que des os, puis de la chair ajoutée) <a class="source"
href="https://www.incroyant.fr/index.php?page=concordism.index&idcc=8"></a></span>.</p>
<p lang="ar">ثُمَّ خَلَقْنَا ٱلنُّطْفَةَ عَلَقَةًۭ فَخَلَقْنَا ٱلْعَلَقَةَ مُضْغَةًۭ فَخَلَقْنَا ٱلْمُضْغَةَ
عِظَٰمًۭا فَكَسَوْنَا ٱلْعِظَٰمَ لَحْمًۭا ثُمَّ أَنشَأْنَٰهُ خَلْقًا ءَاخَرَ ۚ فَتَبَارَكَ ٱللَّهُ أَحْسَنُ
ٱلْخَٰلِقِينَ</p>
<p lang="ar-Latn">Thumma Khalaqnā An-Nuţfata `Alaqatan Fakhalaqnā Al-`Alaqata Muđghatan Fakhalaqnā Al-Muđghata
`Ižāmāan Fakasawnā Al-`Ižāma Laĥmāan Thumma 'Ansha'nāhu Khalqāan 'Ākhara Fatabāraka Allāhu 'Aĥsanu
Al-Khāliqīna</p>
<p lang="en">then We developed the drop into a clinging clot, then developed the clot into a lump ˹of flesh˺, then
developed the lump into bones, then clothed the bones with flesh, then We brought it into being as a new
creation.1 So Blessed is Allah, the Best of Creators.</p>
developed the lump into bones, then clothed the bones with flesh, then We brought it into being as a new creation
<span class="note">This happens when the spirit is breathed into the embryo</span>. So Blessed is Allah, the Best
of Creators.</p>
</li>
<li id="15">
<p lang="fr">Et puis, après cela, vous mourrez.</p>
Expand Down
Loading

0 comments on commit f785823

Please sign in to comment.