Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

swh:1:snp:4e3e7077647a709f15b8c1b32ce7100175d0580b
  • Code
  • Branches (2)
  • Releases (15)
    • Branches
    • Releases
    • HEAD
    • refs/heads/main
    • refs/tags/0.6.0
    • 0.5.1
    • 0.5.0
    • 0.4.5
    • 0.4.4
    • 0.4.3
    • 0.4.2
    • 0.4.1
    • 0.4.0
    • 0.3.0
    • 0.2.0
    • 0.1.6
    • 0.1.5
    • 0.1.4
    • 0.1.3
    • 0.1.2
  • 7cc27bf
  • /
  • deploy_docs.sh
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
content badge Iframe embedding
swh:1:cnt:d476009b8465bc6b1f55ba1e5c0b61c3edfc4b31
directory badge Iframe embedding
swh:1:dir:7cc27bfc0b55243edbac49ba4547f21bad79ce9e
revision badge
swh:1:rev:bfda61015d0817d259ec539d4fcf876e81a5ed1d
snapshot badge
swh:1:snp:4e3e7077647a709f15b8c1b32ce7100175d0580b

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: bfda61015d0817d259ec539d4fcf876e81a5ed1d authored by Jean Kossaifi on 14 April 2021, 11:14:29 UTC
Pypi Worflow: use correct token for test pypi
Tip revision: bfda610
deploy_docs.sh
#!/bin/bash
# Inspired from scikit-image
# https://github.com/scikit-image/scikit-image/blob/master/tools/travis/deploy_docs.sh
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" &&
	      $DEPLOY_DOCS == 1 ]]
then
	echo "---------------------------------------------------"
	echo "deploy_docs.sh: building doc and pushing to website"
	(
    git config --global user.email "admin@tensorly.org"
    git config --global user.name "Travis"

	# Install the dependencies
	cd doc
	echo "-- Installing dependencies"
	conda install matplotlib Pillow sphinx
	pip install -r requirements_doc.txt

	# Making the doc
	echo "-- Building doc"
	make html

	# If build succeeded, update website
	if [ $? -eq 0 ]; then
		echo 'Documentation was successfully built, updating the website.'
		cd ..

		echo "-- Cloning doc repo"
		git clone --quiet https://github.com/tensorly/tensorly.github.io doc_folder
		cd doc_folder
		git rm -r dev/*
		mkdir -p dev
		cp -r ../doc/_build/html/* dev/

		echo "Pushinng to git"
		git add dev
		git commit -m "Travis auto-update"
		git push --force --quiet "https://${gh_token}@github.com/tensorly/tensorly.github.io" > /dev/null 2>&1
	# Build failed
	else
		echo '-- Build FAILED. Not updating the website.'
	fi
	)
else
    echo "NOT BUILDIGN DOC -- will only push docs from master and if DEPLOY_DOCS == 1"
fi

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API