From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iNIoNsYevmJSrwAAbAwnHQ (envelope-from ) for ; Fri, 01 Jul 2022 00:08:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id eHwhNcYevmIZ8wAAG6o9tA (envelope-from ) for ; Fri, 01 Jul 2022 00:08:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 617973B77A for ; Fri, 1 Jul 2022 00:08:06 +0200 (CEST) Received: from localhost ([::1]:39504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o72KS-0007XD-UR for larch@yhetil.org; Thu, 30 Jun 2022 18:08:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o72JP-0007Wx-GC for emacs-orgmode@gnu.org; Thu, 30 Jun 2022 18:06:59 -0400 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:34428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o72JL-00083V-6t for emacs-orgmode@gnu.org; Thu, 30 Jun 2022 18:06:59 -0400 Received: by mail-pl1-x635.google.com with SMTP id jh14so616761plb.1 for ; Thu, 30 Jun 2022 15:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=PLY+Swq3fjVpZCPe6Et1PzmeoiWU+vGzbnNLwDY3U7g=; b=QysGPVGOwixEc6LFFP56kz+VdS8sQzLm1TTYz/75HntnxbZBb4urfxwwZOxnAco++o lkwD9rp0XAZ6fv+KeSkkneTlZK+C3YR4IvQuMk2nxOkCkrThpOXJYOqzndzmh+amfDXj LIPG954k/BDJR0hnY/icXBN/IdycRlirpuBH9y9KSijcwI7YGgrdvKOTju4esQoKv0cp XYuNSs3d5Qu6gs9T16QhvV3lMdV3uURfjFI2baD1EOfMnvJX7Mbl473BtylTzL48/NMe 7MoNjRJ8vvUZnls9pco4XRn8zvG4anJ4Ok/JFNb1YxbfgiEiw6CaNv5Z7mFKBBeEZyvL IhbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=PLY+Swq3fjVpZCPe6Et1PzmeoiWU+vGzbnNLwDY3U7g=; b=X+BaqwDv0oCcfBZWpYmE3R3h1knVjqQzYmxwoJiZxW0UVFcx3LlKJe/5JHzmhJfu3V i74CfQvVwFQb2hKvEJONcJ74GhqPcV5jOwpoxJkwW7Y1bvLMsN0SjtzWt2cIcWsZVvPb AqzBxwbj5Y6SfR6GInX7DUmsaT8eeOi00YP9Hb41DJraCKzAaCEmMuFw8fkEp1FeOXyf Jx3pTEMHP2tALP3mT/k6I4xOFhrRxgRzaJsjS9DZeAnw3kENNQK+++RJ4W61JgqFaJGS xGblvxDq/9DFXoYX72u/zmNPw4bgioGfOFcBzOioE5Z+jfh12SANjVEVNWMOTkCKM3bB Dhmw== X-Gm-Message-State: AJIora9mMR5UYnnVjXqupVT4WPH8xfZvlKGS8LzPlKIxrwc6kKlZtVPb /PL/UtdqwdHmMTS2fzwSVmp8h5r2EEbrsA== X-Google-Smtp-Source: AGRyM1tWvqKfwfO5WNbpeIYlNINrjIMh2OIyP2Rbpr/kmBLHumPtREGY1gOpcDj12Rp8zHz/Q94Gsg== X-Received: by 2002:a17:90a:d703:b0:1ec:ac0d:5d3d with SMTP id y3-20020a17090ad70300b001ecac0d5d3dmr12278136pju.81.1656626812415; Thu, 30 Jun 2022 15:06:52 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-e5a3-5b00-44a4-0157.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:e5a3:5b00:44a4:157]) by smtp.gmail.com with ESMTPSA id i13-20020a17090332cd00b0016b7c557e08sm6132867plr.56.2022.06.30.15.06.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 15:06:51 -0700 (PDT) References: <87pmj9c7l0.fsf@gmail.com> <87o7ya7gxc.fsf@localhost> <871qv61p0t.fsf@gmail.com> User-agent: mu4e 1.8.2; emacs 29.0.50 From: Tim Cross To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: Serving .org files for worg (was: Re: Library of babel help) Date: Fri, 01 Jul 2022 07:48:43 +1000 In-reply-to: Message-ID: <87wncxztzb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=theophilusx@gmail.com; helo=mail-pl1-x635.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656626886; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PLY+Swq3fjVpZCPe6Et1PzmeoiWU+vGzbnNLwDY3U7g=; b=fE+MgXZs9tfIusGPTkquP4/x3G0yVj5/xhbZHANpCyZw7wDLDgPxcTdswJ4H3WHavTOXok l9rZ/zeBMoiP0GAz2uJa7MHurWuP3g2E81mAC7Gg+dBlCGazOaqMahr6vg4Fi8qRw32qZV A0WDdt96FqrdMm5/acht5JZ+HOc1IxHa6J+NuipVvHwbW7ib4kEOcjCfvIh4joODc5E1Gs t44sDi2C54kiRLcIIEMZPPWNfREuXHubEHy34abWF8t/QGrMcAnWWoJh1IUMayg+79XnXW V8xzmnjBB+8iAi7oyrjhWGS0KSssGKLsAGGmC1ynrzlrcL5d8iU+9us06m+0ow== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656626886; a=rsa-sha256; cv=none; b=av2jZmMLoxqCwr+YWP/Uq0RKD6GUKF4rE1YwLbR0ph57vQL/870ezn5ggrZSDirofj5IEA bQZkwop5PaIz0Es8P/K/fqBqAIM9sJW1fkAo64qDzxJSE0imRoKpfG96SzTDi9C5tmM2+E 4AyzMkKJWyh9mKH97XoEA64wbwBjw6JWXRdJ4CWqO/CYrMtLtO0PiwGPCnSA1zU37qG6nt sGS2qnO7IN9lsrpDLCfPQ3/JIlPAJ0CNQZEEZoHLbS/tn0RjL7fwFh4OetU8ud6pjYgPBZ uQcuPCe8EWvHbJnM3nAjqLiBcN4tfLLb0ar793M6DDJixgDM4iZ4h1Zp2pI9hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QysGPVGO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QysGPVGO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 617973B77A X-Spam-Score: -5.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: wQqTJgGUO15G Max Nikulin writes: > On 30/06/2022 16:06, Tim Cross wrote: >> >>> Aren't they currently available? I can and I was always able to get the >>> org sources by changing the link from .html to .org. >> No, that doesn't work for me using either chrome or firefox. Chrome just >> keeps switching back to the HTML url and firefox just hangs, returning >> nothing. Bastien has sent me the nginx config being used, but I've not >> yet had a look at it. > > It is rather strange > > curl -I 'https://orgmode.org/worg/doc.org' > ... > Content-Type: application/octet-stream > > browsers should offer "save as" dialog in such case. It is possible to add > Content-Disposition header to force "save" prompt, but I am unsure if it the > best option. I would prefer some desktop-wide MIME handler, but there is not > specific type for org. text/plain will be likely handled by browsers internally. > Unsure if something like "text/x-org" is better since anyway custom > configuration will be required. > > Tim, did you face the problem with some particular file? Browsers might try to > guess real MIME type from file content. If the problem is reproducible, you may > experiment with "no sniff" header. There are 2 issues as I see it. 1. Just using the .org as the suffix of the url instead of the .html did not work for me using two different browser. However, it did work for ihor, so either I did something wrong or there is something in my setup which is preventing that from working. Need to investigate further. However, that is not my main issue. My main issue is that having to know you can change the suffix from .html to .org in order to get the source is insufficient. It won't be obvious to many users and will only make some sense to experienced org users. I think the link should be obvious and I think the server configuration should be set so that accessing the .org url gives a sensible result (i.e. prefer opening it as plain text to offering to download). My aim is to fix this, but I've not yet had time to even look at it. I do have the server config file, so am able to review that and will sort this out once time permits. One of the changes I have started to implement is to standardise the and the page header/footer sections to make them consistent across the worg site and get consistency with internal URLs (some a relative, some are absolute), some have hard coded values, other use site wide variables etc. The initial aim is to make the site consistent and the build process server independent. Ideally, anyone will be able to clone the repo, set a document root and run the build process to create a fully working local worg site. Little in this first stage is terribly contentious. Once this is done, the second stage is to work on improving the default style and make the worg content easy to discover/browse. There is likely to be varied opinions here and my intention will be to create a dev or uat site where interested uses can have a look and provide feedback/suggestions (as well as test). While I have made some progress, time is a little scarce at present and I'll only have a few hours each weekend for the next few weeks to work on this. However, I'm hoping some other commitments will scale down soon and I'll have more time to devote to this task. It is quite rewarding, just time consuming at present as I nail down all the moving parts!