Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Javarome committed Aug 18, 2024
1 parent cc3ba87 commit 3fe8919
Show file tree
Hide file tree
Showing 18 changed files with 88 additions and 1,576 deletions.
6 changes: 3 additions & 3 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import { ChronologyReplacerActions } from "./time/datasource/ChronologyReplacerA
import { SourceReplacer } from "./source/SourceReplacer"
import { NoteReplacer } from "./note/NoteReplacer"
import { NoteFileCounter } from "./note/NoteFileCounter"
import { PersisentSourceRegistry } from "./source/PersisentSourceRegistry"
import { PersistentSourceRegistry } from "./source/PersistentSourceRegistry"
import { SourceIndexStep } from "./source/SourceIndexStep"
import { SourceFileCounter } from "./source/SourceFileCounter"
import { TimeElementFactory } from "./time/TimeElementFactory"
Expand Down Expand Up @@ -236,7 +236,7 @@ timeService.getFiles().then(async (timeFiles) => {
const sourceRegistryFileName = "source/index.json"
const baseUrl = "https://rr0.org"
const http = new HttpSource()
const sourceFactory = new PersisentSourceRegistry(dataService, http, baseUrl, sourceRegistryFileName)
const sourceFactory = new PersistentSourceRegistry(dataService, http, baseUrl, sourceRegistryFileName, timeFormat)
const noteCounter = new NoteFileCounter()
const noteRenderer = new NoteRenderer(noteCounter)
const caseRenderer = new CaseSummaryRenderer(noteRenderer, sourceFactory, sourceRenderer)
Expand Down Expand Up @@ -264,7 +264,7 @@ timeService.getFiles().then(async (timeFiles) => {
new SsiSetVarReplaceCommand("title", (_match: string, ...args: any[]) => `<title>${args[0]}</title>`),
new SsiSetVarReplaceCommand("url",
(_match: string, ...args: any[]) => `<meta name="url" content="${args[0]}"/>`),
new SsiLastModifiedReplaceCommand(context.time.options),
new SsiLastModifiedReplaceCommand(timeFormat),
new SsiTitleReplaceCommand([timeDefaultHandler]),
new DescriptionReplaceCommand("UFO data for french-reading people", "abstract"),
new AuthorReplaceCommand(timeService)
Expand Down
2 changes: 1 addition & 1 deletion org/eu/fr/cnes/geipan/GeipanCaseSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type GeipanZoneCode = FranceDepartementCode | FranceRegionCode | CountryC
*/
export interface GeipanCaseSummary {
id: string
url: URL
url: string
dateTime: TimeContext
sightingType?: GeipanSightingType
city: string
Expand Down
5 changes: 4 additions & 1 deletion org/eu/fr/cnes/geipan/GeipanCaseSummaryRR0Mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ export class GeipanCaseSummaryRR0Mapper implements CaseMapper<HtmlRR0SsgContext,
map(context: HtmlRR0SsgContext, sourceCase: GeipanCaseSummary, sourceTime: Date): RR0CaseSummary {
const id = sourceCase.id
const caseSource: Source = {
url: sourceCase.url, title: "cas n° " + id, authors: this.authors,
previousSourceRefs: [],
events: [], url: sourceCase.url, title: "cas n° " + id, authors: this.authors,
publication: {publisher: this.copyright, time: TimeContext.fromDate(sourceTime, context.time.options)}
}
const place = this.getPlace(context, sourceCase)
return {
type: "case",
events: [],
id,
time: sourceCase.dateTime,
place,
Expand Down
2 changes: 1 addition & 1 deletion org/eu/fr/cnes/geipan/GeipanHttpDatasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export class GeipanHttpDatasource extends GeipanDatasource {
return {
zoneCode,
id: caseNumber,
url,
url: url.href,
city,
dateTime,
postTime,
Expand Down
Loading

0 comments on commit 3fe8919

Please sign in to comment.