-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce07c92
commit be8b936
Showing
2 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
|
||
const postsFile = path.join(process.cwd(), '../export.json'); | ||
const outputFile = path.join(process.cwd(), 'redirects.txt'); | ||
|
||
async function readPosts() { | ||
const data = await fs.promises.readFile(postsFile, 'utf8'); | ||
return JSON.parse(data); | ||
} | ||
|
||
async function getRedirects() { | ||
const posts = await readPosts(); | ||
let txt = ''; | ||
for (const post of posts) { | ||
const newSlug = post.slug.split('/').pop(); | ||
txt += `/blog/${post.slug}.html https://seqera.io/blog/${newSlug} 301`; | ||
txt += "\n"; | ||
} | ||
fs.writeFileSync(outputFile, txt); | ||
} | ||
|
||
getRedirects(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/blog/2014/nextflow-meets-docker.html https://seqera.io/blog/nextflow-meets-docker 301 | ||
/blog/2014/share-nextflow-pipelines-with-github.html https://seqera.io/blog/share-nextflow-pipelines-with-github 301 | ||
/blog/2014/using-docker-in-hpc-cluster.html https://seqera.io/blog/using-docker-in-hpc-cluster 301 | ||
/blog/2015/innovation-in-science-the-story-behind-nextflow.html https://seqera.io/blog/innovation-in-science-the-story-behind-nextflow 301 | ||
/blog/2015/introducing-nextflow-console.html https://seqera.io/blog/introducing-nextflow-console 301 | ||
/blog/2015/mpi-like-execution-with-nextflow.html https://seqera.io/blog/mpi-like-execution-with-nextflow 301 | ||
/blog/2015/the-impact-of-docker-on-genomic-pipelines.html https://seqera.io/blog/the-impact-of-docker-on-genomic-pipelines 301 | ||
/blog/2016/best-practice-for-reproducibility.html https://seqera.io/blog/best-practice-for-reproducibility 301 | ||
/blog/2016/deploy-in-the-cloud-at-snap-of-a-finger.html https://seqera.io/blog/deploy-in-the-cloud-at-snap-of-a-finger 301 | ||
/blog/2016/developing-bioinformatics-pipeline-across-multiple-environments.html https://seqera.io/blog/developing-bioinformatics-pipeline-across-multiple-environments 301 | ||
/blog/2016/docker-for-dunces-nextflow-for-nunces.html https://seqera.io/blog/docker-for-dunces-nextflow-for-nunces 301 | ||
/blog/2016/enabling-elastic-computing-nextflow.html https://seqera.io/blog/enabling-elastic-computing-nextflow 301 | ||
/blog/2016/error-recovery-and-automatic-resources-management.html https://seqera.io/blog/error-recovery-and-automatic-resources-management 301 | ||
/blog/2016/more-fun-containers-hpc.html https://seqera.io/blog/more-fun-containers-hpc 301 | ||
/blog/2017/caw-and-singularity.html https://seqera.io/blog/caw-and-singularity 301 | ||
/blog/2017/nextflow-and-cwl.html https://seqera.io/blog/nextflow-and-cwl 301 | ||
/blog/2017/nextflow-hack17.html https://seqera.io/blog/nextflow-hack17 301 | ||
/blog/2017/nextflow-nature-biotech-paper.html https://seqera.io/blog/nextflow-nature-biotech-paper 301 | ||
/blog/2017/nextflow-workshop.html https://seqera.io/blog/nextflow-workshop 301 | ||
/blog/2017/scaling-with-aws-batch.html https://seqera.io/blog/scaling-with-aws-batch 301 | ||
/blog/2018/bringing-nextflow-to-google-cloud-wuxinextcode.html https://seqera.io/blog/bringing-nextflow-to-google-cloud-wuxinextcode 301 | ||
/blog/2018/clarification-about-nextflow-license.html https://seqera.io/blog/clarification-about-nextflow-license 301 | ||
/blog/2018/conda-support-has-landed.html https://seqera.io/blog/conda-support-has-landed 301 | ||
/blog/2018/goodbye-zero-hello-apache.html https://seqera.io/blog/goodbye-zero-hello-apache 301 | ||
/blog/2018/nextflow-meets-dockstore.html https://seqera.io/blog/nextflow-meets-dockstore 301 | ||
/blog/2018/nextflow-turns-5.html https://seqera.io/blog/nextflow-turns-5 301 | ||
/blog/2019/demystifying-nextflow-resume.html https://seqera.io/blog/demystifying-nextflow-resume 301 | ||
/blog/2019/easy-provenance-report.html https://seqera.io/blog/easy-provenance-report 301 | ||
/blog/2019/one-more-step-towards-modules.html https://seqera.io/blog/one-more-step-towards-modules 301 | ||
/blog/2019/release-19.03.0-edge.html https://seqera.io/blog/release-19.03.0-edge 301 | ||
/blog/2019/release-19.04.0-stable.html https://seqera.io/blog/release-19.04.0-stable 301 | ||
/blog/2019/troubleshooting-nextflow-resume.html https://seqera.io/blog/troubleshooting-nextflow-resume 301 | ||
/blog/2020/cli-docs-release.html https://seqera.io/blog/cli-docs-release 301 | ||
/blog/2020/dsl2-is-here.html https://seqera.io/blog/dsl2-is-here 301 | ||
/blog/2020/groovy3-syntax-sugar.html https://seqera.io/blog/groovy3-syntax-sugar 301 | ||
/blog/2020/learning-nextflow-in-2020.html https://seqera.io/blog/learning-nextflow-in-2020 301 | ||
/blog/2021/5-more-tips-for-nextflow-user-on-hpc.html https://seqera.io/blog/5-more-tips-for-nextflow-user-on-hpc 301 | ||
/blog/2021/5_tips_for_hpc_users.html https://seqera.io/blog/5_tips_for_hpc_users 301 | ||
/blog/2021/configure-git-repositories-with-nextflow.html https://seqera.io/blog/configure-git-repositories-with-nextflow 301 | ||
/blog/2021/introducing-nextflow-for-azure-batch.html https://seqera.io/blog/introducing-nextflow-for-azure-batch 301 | ||
/blog/2021/nextflow-developer-environment.html https://seqera.io/blog/nextflow-developer-environment 301 | ||
/blog/2021/nextflow-sql-support.html https://seqera.io/blog/nextflow-sql-support 301 | ||
/blog/2021/setup-nextflow-on-windows.html https://seqera.io/blog/setup-nextflow-on-windows 301 | ||
/blog/2022/caching-behavior-analysis.html https://seqera.io/blog/caching-behavior-analysis 301 | ||
/blog/2022/czi-mentorship-round-1.html https://seqera.io/blog/czi-mentorship-round-1 301 | ||
/blog/2022/deploy-nextflow-pipelines-with-google-cloud-batch.html https://seqera.io/blog/deploy-nextflow-pipelines-with-google-cloud-batch 301 | ||
/blog/2022/evolution-of-nextflow-runtime.html https://seqera.io/blog/evolution-of-nextflow-runtime 301 | ||
/blog/2022/learn-nextflow-in-2022.html https://seqera.io/blog/learn-nextflow-in-2022 301 | ||
/blog/2022/nextflow-is-moving-to-slack.html https://seqera.io/blog/nextflow-is-moving-to-slack 301 | ||
/blog/2022/nextflow-summit-2022-recap.html https://seqera.io/blog/nextflow-summit-2022-recap 301 | ||
/blog/2022/nextflow-summit-call-for-abstracts.html https://seqera.io/blog/nextflow-summit-call-for-abstracts 301 | ||
/blog/2022/rethinking-containers-for-cloud-native-pipelines.html https://seqera.io/blog/rethinking-containers-for-cloud-native-pipelines 301 | ||
/blog/2022/turbocharging-nextflow-with-fig.html https://seqera.io/blog/turbocharging-nextflow-with-fig 301 | ||
/blog/2023/a-nextflow-docker-murder-mystery-the-mysterious-case-of-the-oom-killer.html https://seqera.io/blog/a-nextflow-docker-murder-mystery-the-mysterious-case-of-the-oom-killer 301 | ||
/blog/2023/best-practices-deploying-pipelines-with-hpc-workload-managers.html https://seqera.io/blog/best-practices-deploying-pipelines-with-hpc-workload-managers 301 | ||
/blog/2023/celebrating-our-largest-international-training-event-and-hackathon-to-date.html https://seqera.io/blog/celebrating-our-largest-international-training-event-and-hackathon-to-date 301 | ||
/blog/2023/community-forum.html https://seqera.io/blog/community-forum 301 | ||
/blog/2023/czi-mentorship-round-2.html https://seqera.io/blog/czi-mentorship-round-2 301 | ||
/blog/2023/czi-mentorship-round-3.html https://seqera.io/blog/czi-mentorship-round-3 301 | ||
/blog/2023/geraldine-van-der-auwera-joins-seqera.html https://seqera.io/blog/geraldine-van-der-auwera-joins-seqera 301 | ||
/blog/2023/introducing-nextflow-ambassador-program.html https://seqera.io/blog/introducing-nextflow-ambassador-program 301 | ||
/blog/2023/learn-nextflow-in-2023.html https://seqera.io/blog/learn-nextflow-in-2023 301 | ||
/blog/2023/nextflow-goes-to-university.html https://seqera.io/blog/nextflow-goes-to-university 301 | ||
/blog/2023/nextflow-summit-2023-recap.html https://seqera.io/blog/nextflow-summit-2023-recap 301 | ||
/blog/2023/nextflow-with-gbatch.html https://seqera.io/blog/nextflow-with-gbatch 301 | ||
/blog/2023/reflecting-on-ten-years-of-nextflow-awesomeness.html https://seqera.io/blog/reflecting-on-ten-years-of-nextflow-awesomeness 301 | ||
/blog/2023/selecting-the-right-storage-architecture-for-your-nextflow-pipelines.html https://seqera.io/blog/selecting-the-right-storage-architecture-for-your-nextflow-pipelines 301 | ||
/blog/2023/the-state-of-kubernetes-in-nextflow.html https://seqera.io/blog/the-state-of-kubernetes-in-nextflow 301 | ||
/blog/2024/addressing-bioinformatics-core-challenges.html https://seqera.io/blog/addressing-bioinformatics-core-challenges 301 | ||
/blog/2024/ambassador-second-call.html https://seqera.io/blog/ambassador-second-call 301 | ||
/blog/2024/better-support-through-community-forum-2024.html https://seqera.io/blog/better-support-through-community-forum-2024 301 | ||
/blog/2024/bioinformatics-growth-in-turkiye.html https://seqera.io/blog/bioinformatics-growth-in-turkiye 301 | ||
/blog/2024/empowering-bioinformatics-mentoring.html https://seqera.io/blog/empowering-bioinformatics-mentoring 301 | ||
/blog/2024/experimental-cleanup-with-nf-boost.html https://seqera.io/blog/experimental-cleanup-with-nf-boost 301 | ||
/blog/2024/how_i_became_a_nextflow_ambassador.html https://seqera.io/blog/how_i_became_a_nextflow_ambassador 301 | ||
/blog/2024/nextflow-24.04-highlights.html https://seqera.io/blog/nextflow-24.04-highlights 301 | ||
/blog/2024/nextflow-colored-logs.html https://seqera.io/blog/nextflow-colored-logs 301 | ||
/blog/2024/nextflow-nf-core-ancient-env-dna.html https://seqera.io/blog/nextflow-nf-core-ancient-env-dna 301 | ||
/blog/2024/nf-schema.html https://seqera.io/blog/nf-schema 301 | ||
/blog/2024/nf-test-in-nf-core.html https://seqera.io/blog/nf-test-in-nf-core 301 | ||
/blog/2024/nxf-nf-core-workshop-kogo.html https://seqera.io/blog/nxf-nf-core-workshop-kogo 301 | ||
/blog/2024/optimizing-nextflow-for-hpc-and-cloud-at-scale.html https://seqera.io/blog/optimizing-nextflow-for-hpc-and-cloud-at-scale 301 | ||
/blog/2024/reflecting-ambassador-collaboration.html https://seqera.io/blog/reflecting-ambassador-collaboration 301 | ||
/blog/2024/reflections-on-nextflow-mentorship.html https://seqera.io/blog/reflections-on-nextflow-mentorship 301 | ||
/blog/2024/training-local-site.html https://seqera.io/blog/training-local-site 301 | ||
/blog/2024/welcome_ambassadors_20242.html https://seqera.io/blog/welcome_ambassadors_20242 301 |