Changeset 26 in code for trunk/cli/atom.ml


Ignore:
Timestamp:
Nov 16, 2022, 10:02:07 PM (2 years ago)
Author:
fox
Message:

New optional pubdir parameter for txt publish

  • Inform about pubdir value and txt.conf
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/atom.ml

    r19 r26  
    5151        let _i = Str.(search_forward (regexp (protocol ^ "://[^;]*")) locs 0) in
    5252        Str.(matched_string locs)
    53         with Not_found -> Printf.eprintf "Missing location for %s" protocol; ""
     53        with Not_found -> Printf.eprintf "Missing location for %s, add it to txt.conf\n" protocol; ""
    5454
    5555let indices alternate_type c =
     
    6262        let base_url = base_url c.kv protocol_regexp in
    6363        let self = Filename.concat base_url fname in
    64         file fname @@
     64        file fname @@ (*TODO: alternate & self per url*)
    6565          {|<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:base="|} ^ base_url ^ {|"><title>|}
    6666          ^ title ^ {|</title><link rel="alternate" type="|} ^ alternate_type ^ {|" href="|}
Note: See TracChangeset for help on using the changeset viewer.