Inspired by this answer, I start toying with the general equation of the metric tensor $$ ds^2 = g_{\mu\nu}dx^\mu dx^\nu .$$
Let $g$ be diagonal, i.e. $g_{\mu\nu}=0$ for $\mu\neq\nu$ and let $x^0=ct$. For a light ray, where $ds=0$, we get after dividing by $dt^2$ \begin{equation} 0 = c^2\cdot g_{00} + \sum_{i=1}^{3} g_{ii}(\frac{dx^i}{dt})^2 .\tag{1} \end{equation}
According to the cited answer, if the light ray goes along $x^1$ alone we get the velocity of light as \begin{array} . \frac{dx^1}{dt} &= c\sqrt{-\frac{g_{00}}{g_{11}}}, \\ \frac{dx^2}{dt} &= 0\\ \frac{dx^3}{dt} &= 0 \end{array}
If we now let the light ray go along $x^2$, the values of the $\frac{dx^i}{dt}$ change for all $i$.
This is what I don't understand: are the $dx^\mu$, which are rather $dx^\mu(x^0,x^1,x^2,x^3)$, not some property of the spacetime point $(x^0,x^1,x^2,x^3)$? How can $dx^\mu/dx^\nu$ then depend on the direction of a light ray passing through that point. I guess that there is some step missing in the derivation that makes the direction of the light ray explicit. How is this done? Should the direction somehow be included in equation (1)?