snazy commented on code in PR #3902: URL: https://github.com/apache/polaris/pull/3902#discussion_r2867799827
########## site/content/downloads/README.md: ########## @@ -0,0 +1,106 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +# Downloads Page Structure + +This directory contains the downloads page for Apache Polaris releases. + +## Structure + +``` +downloads/ +├── _index.md # Landing page with links to all versions +├── 1.3.0/ +│ └── index.md # Version 1.3.0 details +├── 1.2.0/ +│ └── index.md # Version 1.2.0 details +└── ... +``` + +## Adding a New Download + +When adding downloads for a new release, follow these steps: + +1. Create a new version directory: Create `[major].[minor].[patch]/index.md` + - Use an existing version page as a template (e.g., `1.3.0/index.md`) + - Update the `title`, `linkTitle`, `release_version`, and release date + - Update `weight`: use a negative weight derived from the version, e.g. 1.2.3 -> -10203 + - Add the downloads table with links to artifacts + - Include release notes + +2. Update the landing page (`_index.md`): + - Add the new version to "Active Releases" + +3. Update the "latest" page (`latest/index.md`): + - Update the `redirect_to` parameter to point to the new version + +4. Update `site/hugo.yaml`: + - Add the new version to the `active_releases` list + +5. Update the previous release's page: + - Change all artifact URLs from `https://dlcdn.apache.org/` and `https://downloads.apache.org/` + to `https://archive.apache.org/dist/` + +### URL Guidelines + +- Current release: Use `https://dlcdn.apache.org/` for source/binary artifacts and `https://downloads.apache.org/` for signatures/checksums +- Previous releases: Use `https://archive.apache.org/dist/` for all artifacts +- Maven artifacts: Always use `https://repo1.maven.org/maven2/` + +## Front Matter + +Each version page should have the following front matter: + +```yaml +--- +title: "Apache Polaris [version]-incubating" # Full title shown on the page Review Comment: ```suggestion title: "Apache Polaris [version]" # Full title shown on the page ``` ########## site/content/downloads/README.md: ########## @@ -0,0 +1,106 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + +# Downloads Page Structure + +This directory contains the downloads page for Apache Polaris releases. + +## Structure + +``` +downloads/ +├── _index.md # Landing page with links to all versions +├── 1.3.0/ +│ └── index.md # Version 1.3.0 details +├── 1.2.0/ +│ └── index.md # Version 1.2.0 details +└── ... +``` + +## Adding a New Download + +When adding downloads for a new release, follow these steps: + +1. Create a new version directory: Create `[major].[minor].[patch]/index.md` + - Use an existing version page as a template (e.g., `1.3.0/index.md`) + - Update the `title`, `linkTitle`, `release_version`, and release date + - Update `weight`: use a negative weight derived from the version, e.g. 1.2.3 -> -10203 + - Add the downloads table with links to artifacts + - Include release notes + +2. Update the landing page (`_index.md`): + - Add the new version to "Active Releases" + +3. Update the "latest" page (`latest/index.md`): + - Update the `redirect_to` parameter to point to the new version + +4. Update `site/hugo.yaml`: + - Add the new version to the `active_releases` list + +5. Update the previous release's page: + - Change all artifact URLs from `https://dlcdn.apache.org/` and `https://downloads.apache.org/` + to `https://archive.apache.org/dist/` + +### URL Guidelines + +- Current release: Use `https://dlcdn.apache.org/` for source/binary artifacts and `https://downloads.apache.org/` for signatures/checksums +- Previous releases: Use `https://archive.apache.org/dist/` for all artifacts +- Maven artifacts: Always use `https://repo1.maven.org/maven2/` + +## Front Matter + +Each version page should have the following front matter: + +```yaml +--- +title: "Apache Polaris [version]-incubating" # Full title shown on the page +linkTitle: "[version]" # Short version shown in the sidebar +release_version: "[version]" # Used for active/EOL categorization +weight: [number] # Decrement by 10 from previous version Review Comment: The weight's not "smart" here ;) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
