Просмотр исходного кода

Global search and replace to use the new canonical name.
git grep -l 'urho3d.github.io' |xargs perl -pi -e 's/urho3d.github.io/urho3d.io/g'

Yao Wei Tjong 姚伟忠 4 лет назад
Родитель
Сommit
e0693f8e90
4 измененных файлов с 15 добавлено и 15 удалено
  1. 1 1
      Docs/Urho3D.dox
  2. 6 6
      README.md
  3. 1 1
      cmake/Modules/UrhoCommon.cmake
  4. 7 7
      rakefile

+ 1 - 1
Docs/Urho3D.dox

@@ -4,7 +4,7 @@ namespace Urho3D
 /**
 \mainpage Documentation
 
-Urho3D (https://urho3d.github.io/) is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. It utilizes either Direct3D9 or OpenGL for rendering (%Shader %Model 2 or OpenGL 2.0 required as minimum.)
+Urho3D (https://urho3d.io/) is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. It utilizes either Direct3D9 or OpenGL for rendering (%Shader %Model 2 or OpenGL 2.0 required as minimum.)
 
 For getting started, see:
 

+ 6 - 6
README.md

@@ -7,13 +7,13 @@
 
 **Urho3D** is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. Greatly inspired by OGRE and Horde3D.
 
-Main website: [https://urho3d.github.io/](https://urho3d.github.io/)
+Main website: [https://urho3d.io/](https://urho3d.io/)
 
 ## License
 Licensed under the MIT license, see [LICENSE](https://github.com/urho3d/Urho3D/blob/master/LICENSE) for details.
 
 ## Contributing
-Before making pull requests, please read the [Contribution checklist](https://urho3d.github.io/documentation/HEAD/_contribution_checklist.html) and [Coding conventions](https://urho3d.github.io/documentation/HEAD/_coding_conventions.html) pages from the documentation.
+Before making pull requests, please read the [Contribution checklist](https://urho3d.io/documentation/HEAD/_contribution_checklist.html) and [Coding conventions](https://urho3d.io/documentation/HEAD/_coding_conventions.html) pages from the documentation.
 
 ## Credits
 
@@ -93,12 +93,12 @@ See section "Documentation build" below on how to automate documentation
 generation as part of the build process.
 
 The documentation is also available online at
-  https://urho3d.github.io/documentation/HEAD/index.html
+  https://urho3d.io/documentation/HEAD/index.html
 
 Documentation on how to build Urho3D:
-  https://urho3d.github.io/documentation/HEAD/_building.html
+  https://urho3d.io/documentation/HEAD/_building.html
 Documentation on how to use Urho3D as external library
-  https://urho3d.github.io/documentation/HEAD/_using_library.html
+  https://urho3d.io/documentation/HEAD/_using_library.html
 
 Replace HEAD with a specific release version in the above links to obtain the
 documentation pertinent to the specified release. Alternatively, use the
@@ -106,4 +106,4 @@ document-switcher in the documentation website to do so.
 
 ## History
 The change history is available online at
-  https://urho3d.github.io/documentation/HEAD/_history.html
+  https://urho3d.io/documentation/HEAD/_history.html

+ 1 - 1
cmake/Modules/UrhoCommon.cmake

@@ -1163,7 +1163,7 @@ macro (add_html_shell)
             if (NOT EXISTS ${CMAKE_SOURCE_DIR}/bin/shell.html)
                 file (READ ${EMSCRIPTEN_ROOT_PATH}/src/shell.html HTML_SHELL)
                 string (REPLACE "<!doctype html>" "<!-- This is a generated file. DO NOT EDIT!-->\n\n<!doctype html>" HTML_SHELL "${HTML_SHELL}")     # Stringify to preserve semicolons
-                string (REPLACE "<body>" "<body>\n<script>document.body.innerHTML=document.body.innerHTML.replace(/^#!.*\\n/, '');</script>\n<a href=\"https://urho3d.github.io\" title=\"Urho3D Homepage\"><img src=\"https://urho3d.github.io/assets/images/logo.png\" alt=\"link to https://urho3d.github.io\" height=\"80\" width=\"160\" /></a>\n" HTML_SHELL "${HTML_SHELL}")
+                string (REPLACE "<body>" "<body>\n<script>document.body.innerHTML=document.body.innerHTML.replace(/^#!.*\\n/, '');</script>\n<a href=\"https://urho3d.io\" title=\"Urho3D Homepage\"><img src=\"https://urho3d.io/assets/images/logo.png\" alt=\"link to https://urho3d.io\" height=\"80\" width=\"160\" /></a>\n" HTML_SHELL "${HTML_SHELL}")
                 file (WRITE ${CMAKE_BINARY_DIR}/Source/shell.html "${HTML_SHELL}")
                 set (HTML_SHELL ${CMAKE_BINARY_DIR}/Source/shell.html)
             else ()

+ 7 - 7
rakefile

@@ -204,9 +204,9 @@ end
 
 task :ci_publish_web do
   require 'json'
-  system 'git clone --depth 1 -q https://github.com/urho3d/urho3d.github.io.git build/urho3d.github.io' or abort 'Failed to clone urho3d/urho3d.github.io'
-  system "rsync -a --delete --exclude tool --exclude *.pak --exclude index.md build/ci/bin/ build/urho3d.github.io/samples" or abort 'Failed to rsync Web samples'
-  Dir.chdir('build/urho3d.github.io/samples') {
+  system 'git clone --depth 1 -q https://github.com/urho3d/urho3d.io.git build/urho3d.io' or abort 'Failed to clone urho3d/urho3d.io'
+  system "rsync -a --delete --exclude tool --exclude *.pak --exclude index.md build/ci/bin/ build/urho3d.io/samples" or abort 'Failed to rsync Web samples'
+  Dir.chdir('build/urho3d.io/samples') {
     next unless system 'git diff --quiet Urho3D.js.data'
     uuid = `git diff --color=never --word-diff-regex='\\w+' --word-diff=porcelain Urho3D.js`.split.grep(/^[+-]\w+-/).map { |it| it[0] = ''; it }
     system %Q(ruby -i.bak -pe "gsub '#{uuid.last}', '#{uuid.first}'" Urho3D.js) or abort 'Failed to substitute UUID'
@@ -218,7 +218,7 @@ task :ci_publish_web do
     end
   }
   web = {'samples' => {}}
-  Dir.chdir('build/urho3d.github.io/samples') { web['samples']['Native'] = Dir['*.html'].sort }
+  Dir.chdir('build/urho3d.io/samples') { web['samples']['Native'] = Dir['*.html'].sort }
   web['player'] = web['samples']['Native'].pop # Assume the last sample after sorting is the Urho3DPlayer.html
   {'AngelScript' => 'Scripts', 'Lua' => 'LuaScripts'}.each { |lang, subdir|
     Dir.chdir("bin/Data/#{subdir}") {
@@ -228,12 +228,12 @@ task :ci_publish_web do
       web['samples'][lang] = (script_samples - deleted_samples).map { |sample| "#{subdir}/#{sample}" }
     }
   }
-  File.open('build/urho3d.github.io/_data/web.json', 'w') { |file| file.puts web.to_json }
+  File.open('build/urho3d.io/_data/web.json', 'w') { |file| file.puts web.to_json }
   system %Q{
-    cd build/urho3d.github.io && \\
+    cd build/urho3d.io && \\
     git config user.name #{ENV['PUBLISHER_NAME']} && \\
     git config user.email #{ENV['PUBLISHER_EMAIL']} && \\
-    git remote set-url --push origin https://#{ENV['PUBLISHER_TOKEN']}@github.com/urho3d/urho3d.github.io.git && \\
+    git remote set-url --push origin https://#{ENV['PUBLISHER_TOKEN']}@github.com/urho3d/urho3d.io.git && \\
     git add -A . && \\
     ( git commit -qm "GH Actions: Web samples update at #{Time.now.utc}.\n\nCommit: https://github.com/#{ENV['GITHUB_REPOSITORY']}/commit/#{ENV['GITHUB_SHA']}\n\nMessage: #{`git log --format=%B -n 1`}" || true) && \\
     git push -q >/dev/null 2>&1